2023-04-27 18:32:21 +04:00
|
|
|
[
|
2024-05-07 20:14:55 +04:00
|
|
|
(block)
|
|
|
|
(enum_declaration)
|
|
|
|
(union_declaration)
|
|
|
|
(struct_declaration)
|
|
|
|
(struct)
|
|
|
|
(parameters)
|
|
|
|
(tuple_type)
|
|
|
|
(call_expression)
|
|
|
|
(switch_case)
|
2023-04-27 18:32:21 +04:00
|
|
|
] @indent
|
|
|
|
|
|
|
|
[
|
|
|
|
")"
|
2024-05-07 20:14:55 +04:00
|
|
|
"]"
|
2023-04-27 18:32:21 +04:00
|
|
|
] @outdent
|
|
|
|
|
2024-05-07 20:14:55 +04:00
|
|
|
; Have to do all closing brackets separately because the one for switch statements shouldn't end.
|
|
|
|
(block "}" @outdent)
|
|
|
|
(enum_declaration "}" @outdent)
|
|
|
|
(union_declaration "}" @outdent)
|
|
|
|
(struct_declaration "}" @outdent)
|
|
|
|
(struct "}" @outdent)
|