2022-06-14 17:24:28 +02:00
|
|
|
; Control flow {{{
|
2023-03-20 14:44:39 -07:00
|
|
|
(if_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"then" @indent.branch
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"else" @indent.branch
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(while_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"do" @indent.branch
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(for_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"to" @indent.branch
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; }}}
|
2022-06-14 17:24:28 +02:00
|
|
|
; Class {{{
|
2023-03-20 14:44:39 -07:00
|
|
|
(class_declaration) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(class_declaration
|
|
|
|
|
"}" @indent.end)
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(class_type) @indent.begin
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(class_type
|
|
|
|
|
"}" @indent.end)
|
|
|
|
|
|
|
|
|
|
; }}}
|
2022-06-14 17:24:28 +02:00
|
|
|
; Groups {{{
|
2023-03-20 14:44:39 -07:00
|
|
|
(let_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"in" @indent.branch
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"end" @indent.branch
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(let_expression
|
|
|
|
|
"end" @indent.end)
|
2023-03-20 14:44:39 -07:00
|
|
|
|
|
|
|
|
(sequence_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
")" @indent.branch
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(sequence_expression
|
|
|
|
|
")" @indent.end)
|
|
|
|
|
|
|
|
|
|
; }}}
|
2022-06-14 17:24:28 +02:00
|
|
|
; Functions and methods {{{
|
2023-03-20 14:44:39 -07:00
|
|
|
(parameters) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(parameters
|
|
|
|
|
")" @indent.end)
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(function_call) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(function_call
|
|
|
|
|
")" @indent.end)
|
|
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(method_call) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
")" @indent.branch
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(function_declaration) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(primitive_declaration) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(method_declaration) @indent.begin
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; }}}
|
2022-06-14 17:24:28 +02:00
|
|
|
; Values and expressions {{{
|
2023-03-20 14:44:39 -07:00
|
|
|
(array_value) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"]" @indent.branch
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(array_value
|
|
|
|
|
"]" @indent.end)
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(array_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"of" @indent.branch
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(record_expression) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"}" @indent.branch
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(record_expression
|
|
|
|
|
"}" @indent.end)
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(record_type) @indent.begin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
"}" @indent.branch
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(record_type
|
|
|
|
|
"}" @indent.end)
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(variable_declaration) @indent.begin
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; }}}
|
2022-06-14 17:24:28 +02:00
|
|
|
; Misc{{{
|
2023-03-20 14:44:39 -07:00
|
|
|
(comment) @indent.ignore
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(string_literal) @indent.ignore
|
2022-06-14 17:24:28 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; }}}
|
2022-06-14 17:24:28 +02:00
|
|
|
; vim: sw=2 foldmethod=marker
|