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

@ -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