2023-05-18 09:40:13 +02:00
|
|
|
; Subroutines & scoping
|
|
|
|
|
(block
|
|
|
|
|
")" @indent.branch .) @indent.begin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Control flow statements
|
|
|
|
|
(
|
|
|
|
|
(if_block
|
|
|
|
|
condition: (_)
|
|
|
|
|
. (_) @_then) @indent.begin
|
|
|
|
|
(#not-has-type? @_then block)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(else_block) @indent.branch
|
|
|
|
|
|
|
|
|
|
(else_block
|
|
|
|
|
(if_block) @indent.dedent) @indent.branch
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
(else_block
|
|
|
|
|
(if_block
|
|
|
|
|
condition: (_)
|
|
|
|
|
. (_) @_then)) @indent.branch
|
|
|
|
|
(#not-has-type? @_then block)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(while_block
|
2023-06-05 09:52:36 +09:00
|
|
|
(command_expression)) @indent.auto
|
2023-05-18 09:40:13 +02:00
|
|
|
|
|
|
|
|
(repeat_block
|
2023-06-05 09:52:36 +09:00
|
|
|
(command_expression)) @indent.auto
|
2023-05-18 09:40:13 +02:00
|
|
|
|
|
|
|
|
|
2023-06-05 09:52:36 +09:00
|
|
|
(comment) @indent.auto
|