Add '@indent_end' markers
Ensures for example that the following scenario ```tiger let in ( ) /* <- Inputting a new-line will indent the cursor */ end ``` Does not happen.
This commit is contained in:
parent
c7a439c896
commit
96edb1d0f7
|
@ -12,20 +12,26 @@
|
||||||
|
|
||||||
; Class {{{
|
; Class {{{
|
||||||
(class_declaration) @indent
|
(class_declaration) @indent
|
||||||
|
(class_declaration "}" @indent_end)
|
||||||
|
|
||||||
(class_type) @indent
|
(class_type) @indent
|
||||||
|
(class_type "}" @indent_end)
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Groups {{{
|
; Groups {{{
|
||||||
(let_expression) @indent
|
(let_expression) @indent
|
||||||
"in" @branch
|
"in" @branch
|
||||||
"end" @branch
|
"end" @branch
|
||||||
|
(let_expression "end" @indent_end)
|
||||||
|
|
||||||
(sequence_expression) @indent
|
(sequence_expression) @indent
|
||||||
")" @branch
|
")" @branch
|
||||||
|
(sequence_expression ")" @indent_end)
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Functions and methods {{{
|
; Functions and methods {{{
|
||||||
(parameters) @indent
|
(parameters) @indent
|
||||||
|
(parameters ")" @indent_end)
|
||||||
|
|
||||||
(function_call) @indent
|
(function_call) @indent
|
||||||
(method_call) @indent
|
(method_call) @indent
|
||||||
|
@ -39,12 +45,14 @@
|
||||||
; Values and expressions {{{
|
; Values and expressions {{{
|
||||||
(array_value) @indent
|
(array_value) @indent
|
||||||
"]" @branch
|
"]" @branch
|
||||||
|
(array_value "]" @indent_end)
|
||||||
|
|
||||||
(array_expression) @indent
|
(array_expression) @indent
|
||||||
"of" @branch
|
"of" @branch
|
||||||
|
|
||||||
(record_expression) @indent
|
(record_expression) @indent
|
||||||
"}" @branch
|
"}" @branch
|
||||||
|
(record_expression "}" @indent_end)
|
||||||
|
|
||||||
(variable_declaration) @indent
|
(variable_declaration) @indent
|
||||||
; }}}
|
; }}}
|
||||||
|
|
Loading…
Reference in a new issue