indents.scm

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