Bruno BELANYI
bca103a393
You need to add '@indent' to the *parent* node, which whill indent the children. For some reason I understood it as marking the node that should be indented when I wrote these. These were tested manually in Neovim, I need to add a way to test them correctly though.
24 lines
318 B
Scheme
24 lines
318 B
Scheme
; Control flow {{{
|
|
(if_expression) @indent
|
|
"then" @branch
|
|
"else" @branch
|
|
|
|
(while_expression) @indent
|
|
"do" @branch
|
|
|
|
(for_expression) @indent
|
|
"to" @branch
|
|
; }}}
|
|
|
|
; Class {{{
|
|
(class_declaration) @indent
|
|
(class_type) @indent
|
|
; }}}
|
|
|
|
; Misc{{{
|
|
(comment) @ignore
|
|
(string_literal) @ignore
|
|
; }}}
|
|
|
|
; vim: sw=2 foldmethod=marker
|