blob: 61758ce32d777322622e7a6831c199f8ebf61fab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
[
(compound_stmt)
(initializer_list)
(implies_body)
(struct_body)
(bitstruct_body)
(enum_body)
(interface_body)
(switch_body)
(ct_if_stmt)
(ct_for_stmt)
(ct_foreach_stmt)
(ct_switch_stmt)
] @indent.begin
([
(case_stmt)
(default_stmt)
(ct_case_stmt)
] @indent.begin
(#set! indent.immediate 1))
(expr_stmt
";" @indent.end) @indent.begin
(declaration
";" @indent.end) @indent.begin
(const_declaration
";" @indent.end) @indent.begin
(return_stmt
";" @indent.end) @indent.begin
(faultdef_declaration
";" @indent.end) @indent.begin
(macro_func_body
";" @indent.end)
[
")"
"}"
"$endfor"
"$endforeach"
"$endswitch"
"$endif"
] @indent.branch @indent.end
"$else" @indent.branch
([
(func_param_list)
(macro_param_list)
(enum_param_list)
(attribute_param_list)
(call_arg_list)
(paren_cond)
(for_cond)
(foreach_cond)
(paren_expr)
] @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
[
(block_comment)
(doc_comment)
(raw_string_literal)
(bytes_literal)
] @indent.auto
(string_literal) @indent.ignore
|