fix(indent): rust - support newline after closing brace

This commit is contained in:
Munif Tanjim 2022-01-21 19:51:13 +06:00 committed by Christian Clason
parent 7a6d93ca5b
commit c2e3938510
2 changed files with 23 additions and 0 deletions

View file

@ -27,6 +27,20 @@
(trait_item body: (_) @indent)
(string_literal (escape_sequence)) @indent
(block "}" @indent_end)
(enum_item
body: (enum_variant_list "}" @indent_end))
(impl_item
body: (declaration_list "}" @indent_end))
(match_expression
body: (match_block "}" @indent_end))
(mod_item
body: (declaration_list "}" @indent_end))
(struct_item
body: (field_declaration_list "}" @indent_end))
(trait_item
body: (declaration_list "}" @indent_end))
(impl_item (where_clause) @dedent)
[