Add doctype highlights

This commit is contained in:
Clay 2021-08-16 10:42:56 -07:00 committed by Thomas Vigouroux
parent caf14b70ea
commit 92fe58ca83

View file

@ -1,35 +1,33 @@
; HEEx text is highlighted as such
(text) @text
; HEEx has two types of comments, both are highlighted as such
(comment) @comment
(doctype) @constant
; HEEx attributes are highlighted as HTML attributes
(attribute_name) @tag.attribute
; Attributes are highlighted as strings
(quoted_attribute_value) @string
; HEEx supports HTML tags and are highlighted as such
[
"<"
">"
"</"
"/>"
"<%"
"<%="
"<%%="
"<%#"
"%>"
"/>"
"<!"
"<"
"<%"
"<%#"
"<%%="
"<%="
"</"
">"
"{"
"}"
] @tag.delimiter
[
"="
] @operator
; HEEx tags are highlighted as HTML
(tag_name) @tag
; HEEx components are highlighted as types (Elixir modules)
(component_name) @type
; HEEx operators
["="] @operator