Support HEEx slots

This commit is contained in:
Clay 2022-01-30 16:15:24 -08:00 committed by Stephan Seitz
parent efedf3510a
commit 083aee0873
6 changed files with 34 additions and 16 deletions

View file

@ -1,11 +1,20 @@
; HEEx indents like HTML
; HEEx tags, components, and slots indent like HTML
[
(component)
(slot)
(tag)
] @indent
; Dedent at the end of each tag
; Dedent at the end of each tag, component, and slot
[
(end_tag)
(end_component)
] @branch
(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