1(_ "[" "]" @end) @indent
2(_ "{" "}" @end) @indent
3
4(function_definition
5 ":" @start
6 body: (block) @indent
7)
8
9(if_statement
10 ":" @start
11 consequence: (block) @indent
12 alternative: (_)? @outdent
13)
14
15(else_clause
16 ":" @start
17 body: (block) @indent
18)
19
20(elif_clause
21 ":" @start
22 consequence: (block) @indent
23)
24
25(for_statement
26 ":" @start
27 body: (block) @indent
28)
29
30(with_statement
31 ":" @start
32 body: (block) @indent
33)
34
35(while_statement
36 ":" @start
37 body: (block) @indent
38)
39
40(match_statement
41 ":" @start
42 body: (block) @indent
43)
44
45(class_definition
46 ":" @start
47 body: (block) @indent
48)
49
50(case_clause
51 ":" @start
52 consequence: (block) @indent
53)
54
55(try_statement
56 ":" @start
57 body: (block) @indent
58 (except_clause)? @outdent
59 (else_clause)? @outdent
60 (finally_clause)? @outdent
61)
62
63(except_clause
64 ":" @start
65 (block) @indent
66)
67
68(finally_clause
69 ":" @start
70 (block) @indent
71)