helix-mirror/runtime/queries/ohm/indents.scm
Novus Nota 2d9e336f64
feat: Add Ohm language support (#9991)
* feat: Add `Ohm` language support

Hope this commit makes it into release :)

* Update runtime/queries/ohm/highlights.scm

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

* chore: final newline

---------

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-03-24 23:30:59 +01:00

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