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,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
[