mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 09:56:19 +04:00
38 lines
407 B
Scheme
38 lines
407 B
Scheme
|
; See: https://docs.helix-editor.com/guides/indent.html
|
||
|
|
||
|
; indent
|
||
|
; ------
|
||
|
|
||
|
[
|
||
|
; <..., ...>
|
||
|
(formals)
|
||
|
(params)
|
||
|
|
||
|
; (...| ...)
|
||
|
(alt)
|
||
|
] @indent
|
||
|
|
||
|
; outdent
|
||
|
; -------
|
||
|
|
||
|
[
|
||
|
"}"
|
||
|
")"
|
||
|
">"
|
||
|
] @outdent
|
||
|
|
||
|
; align
|
||
|
; -----
|
||
|
|
||
|
; | ... | ...
|
||
|
(rule_body
|
||
|
. (top_level_term) @anchor
|
||
|
(#set! "scope" "tail")) @align
|
||
|
|
||
|
; N/A or unused:
|
||
|
; --------------
|
||
|
; indent.always
|
||
|
; outdent.always
|
||
|
; extend
|
||
|
; extend.prevent-once
|