Debian Codegraph @

runtime/queries/koto/indents.scm

raw symbols SCIP
1 [
2 (list)
3 (map)
4 (tuple)
5 ] @indent
6
7 [
8 (for)
9 (else_if)
10 (else)
11 (match)
12 (switch)
13 (until)
14 (while)
15 ] @indent @extend
16
17 (assign
18 "=" @indent @extend
19 !rhs
20 )
21 (assign
22 "=" @indent @extend
23 rhs: (_) @anchor
24 (#not-same-line? @indent @anchor)
25 )
26
27 (if
28 condition: (_) @indent @extend
29 !then
30 )
31 (if
32 condition: (_) @indent @extend
33 then: (_) @anchor
34 (#not-same-line? @indent @anchor)
35 )
36
37 (function
38 (args) @indent @extend
39 !body
40 )
41 (function
42 (args) @indent @extend
43 body: (_) @anchor
44 (#not-same-line? @indent @anchor)
45 )
46
47 (match_arm
48 "then" @indent @extend
49 !then
50 )
51 (match_arm
52 "then" @indent @extend
53 then: (_) @anchor
54 (#not-same-line? @indent @anchor)
55 )
56
57 [
58 "}"
59 "]"
60 ")"
61 ] @outdent