mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -2,7 +2,8 @@
|
|||
(class_body)
|
||||
(function_body)
|
||||
(function_expression_body)
|
||||
(declaration (initializers))
|
||||
(declaration
|
||||
(initializers))
|
||||
(switch_block)
|
||||
(if_statement)
|
||||
(formal_parameter_list)
|
||||
|
|
@ -32,14 +33,16 @@
|
|||
"]"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
"}"
|
||||
] @indent.end
|
||||
"}" @indent.end
|
||||
|
||||
(return_statement ";" @indent.end)
|
||||
(break_statement ";" @indent.end)
|
||||
(return_statement
|
||||
";" @indent.end)
|
||||
|
||||
(break_statement
|
||||
";" @indent.end)
|
||||
|
||||
; this one is for dedenting the else block
|
||||
(if_statement (block) @indent.branch)
|
||||
(if_statement
|
||||
(block) @indent.branch)
|
||||
|
||||
(comment) @indent.ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue