Unnamed repository; edit this file 'description' to name the repository.
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
[
  (list)
  (map)
  (tuple)
] @indent

[
  (for)
  (else_if)
  (else)
  (match)
  (switch)
  (until)
  (while)
] @indent @extend

(assign
  "=" @indent @extend
  !rhs
)
(assign
  "=" @indent @extend
  rhs: (_) @anchor
  (#not-same-line? @indent @anchor)
)

(if
  condition: (_) @indent @extend
  !then
)
(if
  condition: (_) @indent @extend
  then: (_) @anchor
  (#not-same-line? @indent @anchor)
)

(function
  (args) @indent @extend
  !body
)
(function
  (args) @indent @extend
  body: (_) @anchor
  (#not-same-line? @indent @anchor)
)

(match_arm
  "then" @indent @extend
  !then
)
(match_arm
  "then" @indent @extend
  then: (_) @anchor
  (#not-same-line? @indent @anchor)
)

[
  "}"
  "]"
  ")"
] @outdent