mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat(rust): improve indents
This commit is contained in:
parent
3a92c540dd
commit
c28396de30
1 changed files with 10 additions and 2 deletions
|
|
@ -5,9 +5,8 @@
|
||||||
(impl_item)
|
(impl_item)
|
||||||
(for_expression)
|
(for_expression)
|
||||||
(struct_expression)
|
(struct_expression)
|
||||||
(match_expression)
|
(struct_pattern)
|
||||||
(tuple_expression)
|
(tuple_expression)
|
||||||
(match_arm)
|
|
||||||
(match_block)
|
(match_block)
|
||||||
(call_expression)
|
(call_expression)
|
||||||
(assignment_expression)
|
(assignment_expression)
|
||||||
|
|
@ -21,6 +20,7 @@
|
||||||
(enum_variant_list)
|
(enum_variant_list)
|
||||||
(parameters)
|
(parameters)
|
||||||
(token_tree)
|
(token_tree)
|
||||||
|
(token_repetition)
|
||||||
(macro_definition)
|
(macro_definition)
|
||||||
] @indent.begin
|
] @indent.begin
|
||||||
|
|
||||||
|
|
@ -79,6 +79,14 @@
|
||||||
(field_declaration_list
|
(field_declaration_list
|
||||||
"}" @indent.end))
|
"}" @indent.end))
|
||||||
|
|
||||||
|
(struct_expression
|
||||||
|
body:
|
||||||
|
(field_initializer_list
|
||||||
|
"}" @indent.end))
|
||||||
|
|
||||||
|
(struct_pattern
|
||||||
|
"}" @indent.end)
|
||||||
|
|
||||||
(trait_item
|
(trait_item
|
||||||
body:
|
body:
|
||||||
(declaration_list
|
(declaration_list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue