Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -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)
|
||||
@@ -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"))
|
||||
Reference in New Issue
Block a user