2023-04-27 16:32:21 +02:00
|
|
|
[
|
2024-05-07 18:14:55 +02:00
|
|
|
(block)
|
|
|
|
(enum_declaration)
|
|
|
|
(union_declaration)
|
|
|
|
(struct_declaration)
|
|
|
|
(struct)
|
|
|
|
(parameters)
|
|
|
|
(tuple_type)
|
|
|
|
(call_expression)
|
|
|
|
(switch_case)
|
2023-04-27 16:32:21 +02:00
|
|
|
] @indent
|
|
|
|
|
|
|
|
[
|
|
|
|
")"
|
2024-05-07 18:14:55 +02:00
|
|
|
"]"
|
2023-04-27 16:32:21 +02:00
|
|
|
] @outdent
|
|
|
|
|
2024-05-07 18:14:55 +02: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)
|