Initial public release of Warp.

Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
David Stern
2026-04-28 08:43:33 -05:00
commit 0dbd3d567a
4982 changed files with 1431549 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
display_name: "C++"
indent_unit:
space: 4
comment_prefix: "//"
brackets:
- start: "{"
end: "}"
- start: "("
end: ")"
- start: "["
end: "]"
@@ -0,0 +1,16 @@
(comment) @comment
; Function declarations and definitions
(function_declarator declarator: (identifier) @definition)
(function_declarator declarator: (qualified_identifier name: (identifier) @definition))
(function_declarator declarator: (field_identifier) @definition)
(template_method name: (field_identifier) @definition)
; Class declarations
(struct_specifier name: (type_identifier) @definition.class body:(_))
(declaration type: (union_specifier name: (type_identifier) @definition.class))
(class_specifier name: (type_identifier) @definition.class)
; Type declarations
(type_definition declarator: (type_identifier) @definition.type)
(enum_specifier name: (type_identifier) @definition.type)
+35
View File
@@ -0,0 +1,35 @@
[
(compound_statement)
(declaration_list)
(field_declaration_list)
(enumerator_list)
(parameter_list)
(init_declarator)
(expression_statement)
] @indent
[
"case"
"}"
"]"
")"
(access_specifier)
] @outdent
(if_statement
consequence: (_) @indent
(#not-kind-eq? @indent "compound_statement")
(#set! "scope" "all"))
(while_statement
body: (_) @indent
(#not-kind-eq? @indent "compound_statement")
(#set! "scope" "all"))
(do_statement
body: (_) @indent
(#not-kind-eq? @indent "compound_statement")
(#set! "scope" "all"))
(for_statement
")"
(_) @indent
(#not-kind-eq? @indent "compound_statement")
(#set! "scope" "all"))