mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -47,16 +47,13 @@
|
|||
_ @indent.branch
|
||||
(#not-has-type? @indent.branch type_parameters parameter))
|
||||
|
||||
|
||||
(ERROR
|
||||
[
|
||||
"<"
|
||||
"{"
|
||||
"("
|
||||
"<"
|
||||
"{"
|
||||
"("
|
||||
"["
|
||||
]
|
||||
) @indent.begin
|
||||
|
||||
]) @indent.begin
|
||||
|
||||
; if-elseif
|
||||
(if_statement
|
||||
|
|
@ -65,23 +62,34 @@
|
|||
; case Foo:
|
||||
; default Foo:
|
||||
; @attribute default Foo:
|
||||
(switch_entry . _ @indent.branch)
|
||||
(switch_entry
|
||||
.
|
||||
_ @indent.branch)
|
||||
|
||||
(function_declaration ")" @indent.branch)
|
||||
(function_declaration
|
||||
")" @indent.branch)
|
||||
|
||||
(type_parameters
|
||||
">" @indent.branch @indent.end .)
|
||||
|
||||
(tuple_expression
|
||||
")" @indent.branch @indent.end)
|
||||
|
||||
(value_arguments
|
||||
")" @indent.branch @indent.end)
|
||||
|
||||
(tuple_type
|
||||
")" @indent.branch @indent.end)
|
||||
|
||||
(type_parameters ">" @indent.branch @indent.end .)
|
||||
(tuple_expression ")" @indent.branch @indent.end)
|
||||
(value_arguments ")" @indent.branch @indent.end)
|
||||
(tuple_type ")" @indent.branch @indent.end)
|
||||
(modifiers
|
||||
(attribute ")" @indent.branch @indent.end))
|
||||
(attribute
|
||||
")" @indent.branch @indent.end))
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch @indent.end
|
||||
|
||||
|
||||
[
|
||||
; (ERROR)
|
||||
(comment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue