nvim-treesitter/runtime/queries/squirrel/indents.scm

64 lines
779 B
Scheme
Raw Permalink Normal View History

2023-03-06 04:46:43 -05:00
[
(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
2023-03-06 04:46:43 -05:00
2024-01-06 15:05:50 +09:00
((if_statement)
(ERROR
"else") @indent.begin)
2023-03-06 04:46:43 -05:00
(if_statement
condition: (_) @indent.begin)
2023-03-06 04:46:43 -05:00
(if_statement
consequence: (_)
(else_statement) @indent.begin)
2023-03-06 04:46:43 -05:00
(do_while_statement
"do"
(_) @indent.begin)
2023-03-06 04:46:43 -05:00
(try_statement
(_) @indent.begin
(catch_statement) @indent.begin)
2023-03-06 04:46:43 -05:00
2024-01-06 15:05:50 +09:00
[
"{"
"}"
] @indent.branch
2023-03-06 04:46:43 -05:00
2024-01-06 15:05:50 +09:00
[
"("
")"
] @indent.branch
2023-03-06 04:46:43 -05:00
2024-01-06 15:05:50 +09:00
[
"["
"]"
] @indent.branch
2023-03-06 04:46:43 -05:00
[
"}"
")"
"]"
] @indent.end
2023-03-06 04:46:43 -05:00
[
(ERROR)
(comment)
(string)
(verbatim_string)
] @indent.auto