mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Support HEEx slots
This commit is contained in:
parent
efedf3510a
commit
083aee0873
6 changed files with 34 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
; HEEx tag and component delimiters
|
||||
; HEEx delimiters
|
||||
[
|
||||
"%>"
|
||||
"--%>"
|
||||
|
|
@ -13,20 +13,19 @@
|
|||
"<%%="
|
||||
"<%="
|
||||
"</"
|
||||
"</:"
|
||||
"<:"
|
||||
">"
|
||||
"{"
|
||||
"}"
|
||||
] @tag.delimiter
|
||||
|
||||
; HEEx operators
|
||||
; HEEx operators are highlighted as such
|
||||
"=" @operator
|
||||
|
||||
; HEEx inherits the DOCTYPE tag from HTML
|
||||
(doctype) @constant
|
||||
|
||||
; HEEx tags are highlighted as HTML tags
|
||||
(tag_name) @tag
|
||||
|
||||
; HEEx comments are highlighted as such
|
||||
(comment) @comment
|
||||
|
||||
|
|
@ -36,6 +35,12 @@
|
|||
; Tree-sitter parser errors
|
||||
(ERROR) @error
|
||||
|
||||
; HEEx tags and slots are highlighted as HTML
|
||||
[
|
||||
(tag_name)
|
||||
(slot_name)
|
||||
] @tag
|
||||
|
||||
; HEEx attributes are highlighted as HTML attributes
|
||||
(attribute_name) @tag.attribute
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue