| 1 | ; Block structures that increase indent |
| 2 | [ |
| 3 | (function_definition) |
| 4 | (block) |
| 5 | (main_block) |
| 6 | |
| 7 | ; Control flow |
| 8 | (if_cond) |
| 9 | (if_chain) |
| 10 | (for_loop) |
| 11 | (while_loop) |
| 12 | (loop_infinite) |
| 13 | |
| 14 | ; Collections |
| 15 | (array) |
| 16 | (parameter_list) |
| 17 | (function_parameter_list) |
| 18 | (parentheses) |
| 19 | |
| 20 | ; Amber-specific |
| 21 | (command_modifier_block) |
| 22 | (handler_failed) |
| 23 | (handler_succeeded) |
| 24 | (handler_exited) |
| 25 | ] @indent |
| 26 | |
| 27 | ; Closing delimiters |
| 28 | [ |
| 29 | "}" |
| 30 | "]" |
| 31 | ")" |
| 32 | ] @outdent |
| 33 | |
| 34 | ; Multi-line construct support |
| 35 | [ |
| 36 | (function_definition) |
| 37 | (if_cond) |
| 38 | (if_chain) |
| 39 | (for_loop) |
| 40 | (while_loop) |
| 41 | (loop_infinite) |
| 42 | (main_block) |
| 43 | ] @extend |
| 44 | |
| 45 | ; Prevent premature outdent |
| 46 | [ |
| 47 | (function_control_flow) |
| 48 | (loop_control_flow) |
| 49 | ] @extend.prevent-once |