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
; Block structures that increase indent
[
  (function_definition)
  (block)
  (main_block)

  ; Control flow
  (if_cond)
  (if_chain)
  (for_loop)
  (while_loop)
  (loop_infinite)

  ; Collections
  (array)
  (parameter_list)
  (function_parameter_list)
  (parentheses)

  ; Amber-specific
  (command_modifier_block)
  (handler_failed)
  (handler_succeeded)
  (handler_exited)
] @indent

; Closing delimiters
[
  "}"
  "]"
  ")"
] @outdent

; Multi-line construct support
[
  (function_definition)
  (if_cond)
  (if_chain)
  (for_loop)
  (while_loop)
  (loop_infinite)
  (main_block)
] @extend

; Prevent premature outdent
[
  (function_control_flow)
  (loop_control_flow)
] @extend.prevent-once