mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
Support HEEx slots
This commit is contained in:
parent
efedf3510a
commit
083aee0873
6 changed files with 34 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue