Compare commits
5 commits
2b2a75af43
...
6216812a33
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 6216812a33 | ||
Bruno BELANYI | 5545b9c926 | ||
Bruno BELANYI | 8a56748e88 | ||
Bruno BELANYI | 7975ca2486 | ||
Bruno BELANYI | bca103a393 |
|
@ -1,20 +1,52 @@
|
||||||
; Control flow {{{
|
; Control flow {{{
|
||||||
(if_expression
|
(if_expression) @indent
|
||||||
consequence: (_) @indent)
|
"then" @branch
|
||||||
"else" @branch
|
"else" @branch
|
||||||
|
|
||||||
(while_expression
|
(while_expression) @indent
|
||||||
body: (_) @indent)
|
"do" @branch
|
||||||
|
|
||||||
(for_expression
|
(for_expression) @indent
|
||||||
body: (_) @indent)
|
"to" @branch
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Class {{{
|
; Class {{{
|
||||||
(class_declaration
|
(class_declaration) @indent
|
||||||
fields: (_)* @indent)
|
(class_type) @indent
|
||||||
(class_type
|
; }}}
|
||||||
fields: (_)* @indent)
|
|
||||||
|
; Groups {{{
|
||||||
|
(let_expression) @indent
|
||||||
|
"in" @branch
|
||||||
|
"end" @branch
|
||||||
|
|
||||||
|
(sequence_expression) @indent
|
||||||
|
")" @branch
|
||||||
|
; }}}
|
||||||
|
|
||||||
|
; Functions and methods {{{
|
||||||
|
(parameters) @indent
|
||||||
|
|
||||||
|
(function_call) @indent
|
||||||
|
(method_call) @indent
|
||||||
|
")" @branch
|
||||||
|
|
||||||
|
(function_declaration) @indent
|
||||||
|
(primitive_declaration) @indent
|
||||||
|
(method_declaration) @indent
|
||||||
|
; }}}
|
||||||
|
|
||||||
|
; Values and expressions {{{
|
||||||
|
(array_value) @indent
|
||||||
|
"]" @branch
|
||||||
|
|
||||||
|
(array_expression) @indent
|
||||||
|
"of" @branch
|
||||||
|
|
||||||
|
(record_expression) @indent
|
||||||
|
"}" @branch
|
||||||
|
|
||||||
|
(variable_declaration) @indent
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Misc{{{
|
; Misc{{{
|
||||||
|
|
Loading…
Reference in a new issue