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)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @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
|
2023-03-20 14:44:39 -07:00
|
|
|
condition: (_) @indent.begin)
|
2023-03-06 04:46:43 -05:00
|
|
|
|
|
|
|
|
(if_statement
|
|
|
|
|
consequence: (_)
|
2023-03-20 14:44:39 -07:00
|
|
|
(else_statement) @indent.begin)
|
2023-03-06 04:46:43 -05:00
|
|
|
|
|
|
|
|
(do_while_statement
|
|
|
|
|
"do"
|
2023-03-20 14:44:39 -07:00
|
|
|
(_) @indent.begin)
|
2023-03-06 04:46:43 -05:00
|
|
|
|
|
|
|
|
(try_statement
|
2023-03-20 14:44:39 -07:00
|
|
|
(_) @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
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"}"
|
|
|
|
|
")"
|
|
|
|
|
"]"
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.end
|
2023-03-06 04:46:43 -05:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(ERROR)
|
|
|
|
|
(comment)
|
|
|
|
|
(string)
|
|
|
|
|
(verbatim_string)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.auto
|