mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
58
runtime/queries/squirrel/indents.scm
Normal file
58
runtime/queries/squirrel/indents.scm
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
[
|
||||
(class_declaration)
|
||||
(function_declaration)
|
||||
(enum_declaration)
|
||||
|
||||
(array)
|
||||
(block)
|
||||
(table)
|
||||
(anonymous_function)
|
||||
(parenthesized_expression)
|
||||
|
||||
(while_statement)
|
||||
(switch_statement)
|
||||
(for_statement)
|
||||
(foreach_statement)
|
||||
; (try_statement)
|
||||
(catch_statement)
|
||||
] @indent.begin
|
||||
|
||||
(
|
||||
(if_statement)
|
||||
(ERROR "else") @indent.begin
|
||||
)
|
||||
|
||||
(if_statement
|
||||
condition: (_) @indent.begin)
|
||||
|
||||
(if_statement
|
||||
consequence: (_)
|
||||
(else_statement) @indent.begin)
|
||||
|
||||
(do_while_statement
|
||||
"do"
|
||||
(_) @indent.begin)
|
||||
|
||||
(try_statement
|
||||
(_) @indent.begin
|
||||
(catch_statement) @indent.begin)
|
||||
|
||||
[ "{" "}" ] @indent.branch
|
||||
|
||||
[ "(" ")" ] @indent.branch
|
||||
|
||||
[ "[" "]" ] @indent.branch
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
"]"
|
||||
] @indent.end
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
|
||||
(string)
|
||||
(verbatim_string)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue