2022-01-27 12:14:18 -03:00
|
|
|
[
|
2024-06-15 14:39:06 +02:00
|
|
|
(braced_expression)
|
|
|
|
|
(parenthesized_expression)
|
2022-03-28 16:08:30 -03:00
|
|
|
(call)
|
2022-01-27 12:14:18 -03:00
|
|
|
"if"
|
|
|
|
|
"else"
|
|
|
|
|
"while"
|
|
|
|
|
"repeat"
|
|
|
|
|
"for"
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.begin
|
2022-01-27 12:14:18 -03:00
|
|
|
|
2024-06-15 14:39:06 +02:00
|
|
|
(binary_operator
|
2024-06-29 00:26:38 +09:00
|
|
|
rhs: (_) @_no_indent
|
|
|
|
|
(#not-kind-eq? @_no_indent function_definition)) @indent.begin
|
2022-11-29 11:52:28 -03:00
|
|
|
|
2022-01-27 12:14:18 -03:00
|
|
|
[
|
|
|
|
|
"}"
|
|
|
|
|
")"
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.branch
|
2022-01-27 12:14:18 -03:00
|
|
|
|
2024-06-15 14:39:06 +02:00
|
|
|
((parameters
|
2024-06-29 00:26:38 +09:00
|
|
|
.
|
2024-06-15 14:39:06 +02:00
|
|
|
(parameter
|
|
|
|
|
name: (identifier))) @indent.align
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! indent.open_delimiter "(")
|
|
|
|
|
(#set! indent.close_delimiter ")"))
|
2022-01-28 22:32:59 -03:00
|
|
|
|
2022-01-27 12:14:18 -03:00
|
|
|
[
|
|
|
|
|
")"
|
|
|
|
|
"}"
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.end
|
2022-01-27 12:14:18 -03:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(comment) @indent.ignore
|