chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -23,24 +23,48 @@
(token_tree)
(macro_definition)
] @indent.begin
(trait_item body: (_) @indent.begin)
(string_literal (escape_sequence)) @indent.begin
(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))
body: (_) @indent.begin)
(impl_item (where_clause) @indent.dedent)
(string_literal
(escape_sequence)) @indent.begin
(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) @indent.dedent)
[
"where"
@ -48,13 +72,13 @@
"]"
"}"
] @indent.branch
(impl_item (declaration_list) @indent.branch)
(impl_item
(declaration_list) @indent.branch)
[
(line_comment)
(string_literal)
] @indent.ignore
(raw_string_literal) @indent.auto