diff options
| author | Clay <connorlay@pm.me> | 2022-01-30 16:15:24 -0800 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-31 09:19:01 +0100 |
| commit | 083aee08735fd5dcd02ef72d831b054244db73a4 (patch) | |
| tree | 9e7073d77a5e2ba256ebaef6e8ae401ffee2c1bf /queries/heex/indents.scm | |
| parent | efedf3510aa85f89a687dd1e29eab6f4677fa17e (diff) | |
Support HEEx slots
Diffstat (limited to 'queries/heex/indents.scm')
| -rw-r--r-- | queries/heex/indents.scm | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/queries/heex/indents.scm b/queries/heex/indents.scm index e2a08713..99fc693d 100644 --- a/queries/heex/indents.scm +++ b/queries/heex/indents.scm @@ -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 |
