2022-06-04 10:57:27 +02:00
|
|
|
; Control flow {{{
|
2022-06-12 20:38:48 +02:00
|
|
|
(if_expression) @indent
|
|
|
|
"then" @branch
|
2022-06-04 10:57:27 +02:00
|
|
|
"else" @branch
|
2022-06-04 10:58:14 +02:00
|
|
|
|
2022-06-12 20:38:48 +02:00
|
|
|
(while_expression) @indent
|
|
|
|
"do" @branch
|
2022-06-04 10:58:14 +02:00
|
|
|
|
2022-06-12 20:38:48 +02:00
|
|
|
(for_expression) @indent
|
|
|
|
"to" @branch
|
2022-06-04 10:57:27 +02:00
|
|
|
; }}}
|
|
|
|
|
2022-06-04 21:54:44 +02:00
|
|
|
; Class {{{
|
2022-06-12 20:38:48 +02:00
|
|
|
(class_declaration) @indent
|
2022-06-12 21:04:16 +02:00
|
|
|
(class_declaration "}" @indent_end)
|
|
|
|
|
2022-06-12 20:38:48 +02:00
|
|
|
(class_type) @indent
|
2022-06-12 21:04:16 +02:00
|
|
|
(class_type "}" @indent_end)
|
2022-06-04 21:54:44 +02:00
|
|
|
; }}}
|
|
|
|
|
2022-06-12 20:40:56 +02:00
|
|
|
; Groups {{{
|
|
|
|
(let_expression) @indent
|
|
|
|
"in" @branch
|
|
|
|
"end" @branch
|
2022-06-12 21:04:16 +02:00
|
|
|
(let_expression "end" @indent_end)
|
2022-06-12 20:40:56 +02:00
|
|
|
|
|
|
|
(sequence_expression) @indent
|
|
|
|
")" @branch
|
2022-06-12 21:04:16 +02:00
|
|
|
(sequence_expression ")" @indent_end)
|
2022-06-12 20:40:56 +02:00
|
|
|
; }}}
|
|
|
|
|
2022-06-12 20:41:40 +02:00
|
|
|
; Functions and methods {{{
|
|
|
|
(parameters) @indent
|
2022-06-12 21:04:16 +02:00
|
|
|
(parameters ")" @indent_end)
|
2022-06-12 20:41:40 +02:00
|
|
|
|
|
|
|
(function_call) @indent
|
|
|
|
(method_call) @indent
|
|
|
|
")" @branch
|
|
|
|
|
|
|
|
(function_declaration) @indent
|
|
|
|
(primitive_declaration) @indent
|
|
|
|
(method_declaration) @indent
|
|
|
|
; }}}
|
|
|
|
|
2022-06-12 20:44:21 +02:00
|
|
|
; Values and expressions {{{
|
|
|
|
(array_value) @indent
|
|
|
|
"]" @branch
|
2022-06-12 21:04:16 +02:00
|
|
|
(array_value "]" @indent_end)
|
2022-06-12 20:44:21 +02:00
|
|
|
|
|
|
|
(array_expression) @indent
|
|
|
|
"of" @branch
|
|
|
|
|
|
|
|
(record_expression) @indent
|
|
|
|
"}" @branch
|
2022-06-12 21:04:16 +02:00
|
|
|
(record_expression "}" @indent_end)
|
2022-06-12 20:44:46 +02:00
|
|
|
|
|
|
|
(variable_declaration) @indent
|
2022-06-12 20:44:21 +02:00
|
|
|
; }}}
|
|
|
|
|
2022-06-04 10:54:31 +02:00
|
|
|
; Misc{{{
|
|
|
|
(comment) @ignore
|
2022-06-04 11:00:41 +02:00
|
|
|
(string_literal) @ignore
|
2022-06-04 10:54:31 +02:00
|
|
|
; }}}
|
|
|
|
|
|
|
|
; vim: sw=2 foldmethod=marker
|