2022-04-14 12:01:23 +08:00
|
|
|
[
|
|
|
|
(brace_list)
|
|
|
|
(paren_list)
|
|
|
|
(special)
|
|
|
|
(pipe)
|
|
|
|
(call)
|
|
|
|
"|>"
|
|
|
|
"if"
|
|
|
|
"else"
|
|
|
|
"while"
|
|
|
|
"repeat"
|
|
|
|
"for"
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.begin
|
|
|
|
|
|
|
|
((binary operator: (special)) @indent.begin)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
[
|
|
|
|
"}"
|
|
|
|
")"
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.branch
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
((formal_parameters (identifier)) @indent.align
|
|
|
|
(#set! indent.open_delimiter "(")
|
|
|
|
(#set! indent.close_delimiter ")"))
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
[
|
|
|
|
")"
|
|
|
|
"}"
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.end
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
[
|
|
|
|
(comment)
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.ignore
|