summaryrefslogtreecommitdiff
path: root/queries/heex/indents.scm
blob: 99fc693dc3188f950d53a3148d627d372b117179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; HEEx tags, components, and slots indent like HTML
[
  (component)
  (slot)
  (tag)
] @indent

; Dedent at the end of each tag, component, and slot
[
  (end_component)
  (end_slot)
  (end_tag)
] @branch @dedent

; Self-closing tags and components should not change
; indentation level of sibling nodes
[
  (self_closing_component)
  (self_closing_tag)
] @auto