Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
display_name: "Rust"
|
||||
indent_unit:
|
||||
space: 4
|
||||
comment_prefix: "//"
|
||||
brackets:
|
||||
- start: "{"
|
||||
end: "}"
|
||||
- start: "("
|
||||
end: ")"
|
||||
- start: "["
|
||||
end: "]"
|
||||
@@ -0,0 +1,19 @@
|
||||
(line_comment) @comment
|
||||
(line_outer_doc_comment) @comment
|
||||
(block_outer_doc_comment) @comment
|
||||
|
||||
; Function definitions
|
||||
(function_item (identifier) @definition.fn)
|
||||
(function_signature_item (identifier) @definition.fn)
|
||||
|
||||
; Struct declarations
|
||||
(struct_item name: (type_identifier) @definition.struct)
|
||||
|
||||
; Enum declarations
|
||||
(enum_item name: (type_identifier) @definition.enum)
|
||||
|
||||
; Trait declarations
|
||||
(trait_item name: (type_identifier) @definition.trait)
|
||||
|
||||
; Type alias declarations
|
||||
(type_item name: (type_identifier) @definition.type)
|
||||
@@ -0,0 +1,33 @@
|
||||
[
|
||||
(use_list)
|
||||
(block)
|
||||
(match_block)
|
||||
(arguments)
|
||||
(parameters)
|
||||
(declaration_list)
|
||||
(field_declaration_list)
|
||||
(field_initializer_list)
|
||||
(struct_pattern)
|
||||
(tuple_pattern)
|
||||
(unit_expression)
|
||||
(enum_variant_list)
|
||||
(call_expression)
|
||||
(binary_expression)
|
||||
(field_expression)
|
||||
(await_expression)
|
||||
(tuple_expression)
|
||||
(array_expression)
|
||||
(where_clause)
|
||||
(type_cast_expression)
|
||||
|
||||
(token_tree)
|
||||
(macro_definition)
|
||||
(token_tree_pattern)
|
||||
(token_repetition)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @outdent
|
||||
Reference in New Issue
Block a user