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
|
|
@ -1,33 +1,33 @@
|
|||
[
|
||||
(record_declaration)
|
||||
(struct_declaration)
|
||||
(mapping_declaration)
|
||||
(constant_declaration)
|
||||
(return_statement)
|
||||
(expression_statement)
|
||||
(variable_declaration)
|
||||
(loop_statement)
|
||||
(assignment_statement)
|
||||
(assert_statement)
|
||||
(struct_expression)
|
||||
(array_expression)
|
||||
(tuple_expression)
|
||||
(parenthesized_expression)
|
||||
(items_block)
|
||||
(block)
|
||||
(record_declaration)
|
||||
(struct_declaration)
|
||||
(mapping_declaration)
|
||||
(constant_declaration)
|
||||
(return_statement)
|
||||
(expression_statement)
|
||||
(variable_declaration)
|
||||
(loop_statement)
|
||||
(assignment_statement)
|
||||
(assert_statement)
|
||||
(struct_expression)
|
||||
(array_expression)
|
||||
(tuple_expression)
|
||||
(parenthesized_expression)
|
||||
(items_block)
|
||||
(block)
|
||||
] @indent.begin
|
||||
|
||||
; if "if" statement and conditional statement are in separate lines
|
||||
; conditional should be indented and when the conditional block
|
||||
; if "if" statement and conditional statement are in separate lines
|
||||
; conditional should be indented and when the conditional block
|
||||
; starts dedented
|
||||
(branch
|
||||
(block "{" @indent.end)) @indent.begin
|
||||
(block
|
||||
"{" @indent.end)) @indent.begin
|
||||
|
||||
((function_parameters) @indent.align
|
||||
(#set! indent.open_delimiter "(")
|
||||
(#set! indent.close_delimiter ")"))
|
||||
|
||||
[
|
||||
(comment)
|
||||
(ERROR)
|
||||
(comment)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue