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 {{{
|
||||
(if_expression
|
||||
consequence: (_) @indent)
|
||||
(if_expression) @indent
|
||||
"then" @branch
|
||||
"else" @branch
|
||||
|
||||
(while_expression
|
||||
body: (_) @indent)
|
||||
(while_expression) @indent
|
||||
"do" @branch
|
||||
|
||||
(for_expression
|
||||
body: (_) @indent)
|
||||
(for_expression) @indent
|
||||
"to" @branch
|
||||
; }}}
|
||||
|
||||
; Class {{{
|
||||
(class_declaration
|
||||
fields: (_)* @indent)
|
||||
(class_type
|
||||
fields: (_)* @indent)
|
||||
(class_declaration) @indent
|
||||
(class_type) @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{{{
|
||||
|
|
Loading…
Reference in a new issue