2022-01-30 16:15:24 -08:00
|
|
|
; HEEx tags, components, and slots indent like HTML
|
2021-08-15 09:40:02 -07:00
|
|
|
[
|
|
|
|
|
(component)
|
2022-01-30 16:15:24 -08:00
|
|
|
(slot)
|
2021-08-15 09:40:02 -07:00
|
|
|
(tag)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.begin
|
2021-08-15 09:40:02 -07:00
|
|
|
|
2022-01-30 16:15:24 -08:00
|
|
|
; Dedent at the end of each tag, component, and slot
|
2021-08-15 09:40:02 -07:00
|
|
|
[
|
|
|
|
|
(end_component)
|
2022-01-30 16:15:24 -08:00
|
|
|
(end_slot)
|
|
|
|
|
(end_tag)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.branch @indent.dedent
|
2022-01-30 16:15:24 -08:00
|
|
|
|
|
|
|
|
; Self-closing tags and components should not change
|
|
|
|
|
; indentation level of sibling nodes
|
|
|
|
|
[
|
|
|
|
|
(self_closing_component)
|
|
|
|
|
(self_closing_tag)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.auto
|