2024-01-20 21:34:49 +09:00
|
|
|
[
|
|
|
|
|
(array_creation_expression)
|
2024-03-16 19:50:13 -05:00
|
|
|
(parenthesized_expression)
|
2024-01-20 21:34:49 +09:00
|
|
|
(compound_statement)
|
|
|
|
|
(declaration_list)
|
2024-03-16 19:50:13 -05:00
|
|
|
(member_call_expression)
|
2024-01-20 21:34:49 +09:00
|
|
|
(binary_expression)
|
|
|
|
|
(return_statement)
|
|
|
|
|
(arguments)
|
|
|
|
|
(formal_parameters)
|
|
|
|
|
(enum_declaration_list)
|
|
|
|
|
(switch_block)
|
|
|
|
|
(match_block)
|
|
|
|
|
(case_statement)
|
2024-05-14 06:07:42 +02:00
|
|
|
(default_statement)
|
2024-08-18 05:30:04 -05:00
|
|
|
(property_hook_list)
|
2024-01-20 21:34:49 +09:00
|
|
|
] @indent.begin
|
|
|
|
|
|
2024-03-16 19:50:13 -05:00
|
|
|
(return_statement
|
|
|
|
|
[
|
|
|
|
|
(object_creation_expression)
|
2024-08-18 05:30:04 -05:00
|
|
|
(anonymous_function)
|
2024-03-16 19:50:13 -05:00
|
|
|
(arrow_function)
|
|
|
|
|
(match_expression)
|
|
|
|
|
]) @indent.dedent
|
|
|
|
|
|
2024-01-20 21:34:49 +09:00
|
|
|
[
|
|
|
|
|
")"
|
|
|
|
|
"}"
|
|
|
|
|
"]"
|
|
|
|
|
] @indent.branch
|
|
|
|
|
|
|
|
|
|
(comment) @indent.auto
|
|
|
|
|
|
2024-03-16 19:50:13 -05:00
|
|
|
(arguments
|
|
|
|
|
")" @indent.end)
|
|
|
|
|
|
|
|
|
|
(formal_parameters
|
|
|
|
|
")" @indent.end)
|
|
|
|
|
|
2024-01-20 21:34:49 +09:00
|
|
|
(compound_statement
|
|
|
|
|
"}" @indent.end)
|
|
|
|
|
|
2024-07-09 10:12:29 +09:00
|
|
|
(declaration_list
|
|
|
|
|
"}" @indent.end)
|
|
|
|
|
|
|
|
|
|
(enum_declaration_list
|
|
|
|
|
"}" @indent.end)
|
|
|
|
|
|
2024-03-16 19:50:13 -05:00
|
|
|
(return_statement
|
|
|
|
|
";" @indent.end)
|
|
|
|
|
|
2024-08-18 05:30:04 -05:00
|
|
|
(property_hook_list
|
|
|
|
|
"}" @indent.end)
|
|
|
|
|
|
2024-01-20 21:34:49 +09:00
|
|
|
(ERROR
|
|
|
|
|
"(" @indent.align
|
|
|
|
|
.
|
|
|
|
|
(_)
|
|
|
|
|
(#set! indent.open_delimiter "(")
|
|
|
|
|
(#set! indent.close_delimiter ")"))
|
|
|
|
|
|
|
|
|
|
(ERROR
|
|
|
|
|
"[" @indent.align
|
|
|
|
|
.
|
|
|
|
|
(_)
|
|
|
|
|
(#set! indent.open_delimiter "[")
|
|
|
|
|
(#set! indent.close_delimiter "]"))
|