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
|
|
@ -18,36 +18,56 @@
|
|||
(ternary_expression)
|
||||
] @indent.begin
|
||||
|
||||
(arguments (call_expression) @indent.begin)
|
||||
(binary_expression (call_expression) @indent.begin)
|
||||
(expression_statement (call_expression) @indent.begin)
|
||||
(arguments
|
||||
(call_expression) @indent.begin)
|
||||
|
||||
(binary_expression
|
||||
(call_expression) @indent.begin)
|
||||
|
||||
(expression_statement
|
||||
(call_expression) @indent.begin)
|
||||
|
||||
(arrow_function
|
||||
body: (_) @_body
|
||||
(#not-has-type? @_body statement_block)
|
||||
) @indent.begin
|
||||
(#not-has-type? @_body statement_block)) @indent.begin
|
||||
|
||||
(assignment_expression
|
||||
right: (_) @_right
|
||||
(#not-has-type? @_right arrow_function function)
|
||||
) @indent.begin
|
||||
(#not-has-type? @_right arrow_function function)) @indent.begin
|
||||
|
||||
(variable_declarator
|
||||
value: (_) @_value
|
||||
(#not-has-type? @_value arrow_function call_expression function)
|
||||
) @indent.begin
|
||||
(#not-has-type? @_value arrow_function call_expression function)) @indent.begin
|
||||
|
||||
(arguments ")" @indent.end)
|
||||
(object "}" @indent.end)
|
||||
(statement_block "}" @indent.end)
|
||||
(arguments
|
||||
")" @indent.end)
|
||||
|
||||
(object
|
||||
"}" @indent.end)
|
||||
|
||||
(statement_block
|
||||
"}" @indent.end)
|
||||
|
||||
[
|
||||
(arguments (object))
|
||||
(arguments
|
||||
(object))
|
||||
")"
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch
|
||||
(statement_block "{" @indent.branch)
|
||||
|
||||
(parenthesized_expression ("(" (_) ")" @indent.end))
|
||||
["}" "]"] @indent.end
|
||||
(statement_block
|
||||
"{" @indent.branch)
|
||||
|
||||
(parenthesized_expression
|
||||
("("
|
||||
(_)
|
||||
")" @indent.end))
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
] @indent.end
|
||||
|
||||
(template_string) @indent.ignore
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue