2022-03-30 17:08:07 +02:00
|
|
|
[
|
|
|
|
(compound_statement)
|
2023-03-11 03:49:19 +01:00
|
|
|
(declaration_list)
|
2022-03-30 17:08:07 +02:00
|
|
|
(field_declaration_list)
|
|
|
|
(enumerator_list)
|
|
|
|
(parameter_list)
|
|
|
|
(init_declarator)
|
|
|
|
(expression_statement)
|
|
|
|
] @indent
|
|
|
|
|
|
|
|
[
|
|
|
|
"case"
|
|
|
|
"}"
|
|
|
|
"]"
|
2023-08-11 12:24:37 +02:00
|
|
|
")"
|
2022-03-30 17:08:07 +02:00
|
|
|
] @outdent
|
|
|
|
|
|
|
|
(if_statement
|
|
|
|
consequence: (_) @indent
|
|
|
|
(#not-kind-eq? @indent "compound_statement")
|
|
|
|
(#set! "scope" "all"))
|
|
|
|
(while_statement
|
|
|
|
body: (_) @indent
|
|
|
|
(#not-kind-eq? @indent "compound_statement")
|
|
|
|
(#set! "scope" "all"))
|
|
|
|
(do_statement
|
|
|
|
body: (_) @indent
|
|
|
|
(#not-kind-eq? @indent "compound_statement")
|
|
|
|
(#set! "scope" "all"))
|
|
|
|
(for_statement
|
|
|
|
")"
|
|
|
|
(_) @indent
|
|
|
|
(#not-kind-eq? @indent "compound_statement")
|
|
|
|
(#set! "scope" "all"))
|
2023-08-11 12:24:37 +02:00
|
|
|
|
|
|
|
(parameter_list
|
|
|
|
. (parameter_declaration) @anchor
|
|
|
|
(#set! "scope" "tail")) @align
|
2023-09-19 16:29:52 +02:00
|
|
|
(argument_list
|
|
|
|
. (_) @anchor
|
|
|
|
(#set! "scope" "tail")) @align
|