blob: 53e78c3417226aa9ad3a5d9a1292717486003974 (
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
|
[
(array_creation_expression)
(compound_statement)
(declaration_list)
(binary_expression)
(return_statement)
(arguments)
(formal_parameters)
(enum_declaration_list)
(switch_block)
(match_block)
(case_statement)
] @indent.begin
[
")"
"}"
"]"
] @indent.branch
[
(comment)
] @indent.auto
(compound_statement "}" @indent.end)
(ERROR
"(" @indent.align
. (_)
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
(ERROR
"[" @indent.align
. (_)
(#set! indent.open_delimiter "[")
(#set! indent.close_delimiter "]"))
|