aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/ohm/indents.scm
blob: f56119aecff24f2d0c20d5c4d34216321dc92200 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
; 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