mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,18 +1,15 @@
|
|||
[
|
||||
(use_statement)
|
||||
(use_statement)
|
||||
(actor_definition)
|
||||
(class_definition)
|
||||
(primitive_definition)
|
||||
(interface_definition)
|
||||
(trait_definition)
|
||||
(struct_definition)
|
||||
|
||||
(constructor)
|
||||
(method)
|
||||
(behavior)
|
||||
|
||||
(parameters)
|
||||
|
||||
(if_block)
|
||||
(then_block)
|
||||
(elseif_block)
|
||||
|
|
@ -23,22 +20,27 @@
|
|||
(match_statement)
|
||||
(parenthesized_expression)
|
||||
(tuple_expression)
|
||||
|
||||
(array_literal)
|
||||
(object_literal)
|
||||
] @indent.begin
|
||||
|
||||
(try_statement (block) @indent.begin)
|
||||
(try_statement
|
||||
(block) @indent.begin)
|
||||
|
||||
(repeat_statement (block) @indent.begin)
|
||||
(repeat_statement
|
||||
(block) @indent.begin)
|
||||
|
||||
(recover_statement (block) @indent.begin)
|
||||
(recover_statement
|
||||
(block) @indent.begin)
|
||||
|
||||
(return_statement (block) @indent.begin)
|
||||
(return_statement
|
||||
(block) @indent.begin)
|
||||
|
||||
(continue_statement (block) @indent.begin)
|
||||
(continue_statement
|
||||
(block) @indent.begin)
|
||||
|
||||
(break_statement (block) @indent.begin)
|
||||
(break_statement
|
||||
(block) @indent.begin)
|
||||
|
||||
[
|
||||
"}"
|
||||
|
|
@ -46,11 +48,20 @@
|
|||
")"
|
||||
] @indent.end
|
||||
|
||||
[ "{" "}" ] @indent.branch
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @indent.branch
|
||||
|
||||
[ "[" "]" ] @indent.branch
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
[ "(" ")" ] @indent.branch
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue