mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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)
|
||||
(for_expression)
|
||||
(struct_expression)
|
||||
(match_expression)
|
||||
(struct_pattern)
|
||||
(tuple_expression)
|
||||
(match_arm)
|
||||
(match_block)
|
||||
(call_expression)
|
||||
(assignment_expression)
|
||||
|
|
@ -21,6 +20,7 @@
|
|||
(enum_variant_list)
|
||||
(parameters)
|
||||
(token_tree)
|
||||
(token_repetition)
|
||||
(macro_definition)
|
||||
] @indent.begin
|
||||
|
||||
|
|
@ -79,6 +79,14 @@
|
|||
(field_declaration_list
|
||||
"}" @indent.end))
|
||||
|
||||
(struct_expression
|
||||
body:
|
||||
(field_initializer_list
|
||||
"}" @indent.end))
|
||||
|
||||
(struct_pattern
|
||||
"}" @indent.end)
|
||||
|
||||
(trait_item
|
||||
body:
|
||||
(declaration_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue