mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
57 lines
833 B
Scheme
57 lines
833 B
Scheme
; HEEx delimiters
|
|
[
|
|
"%>"
|
|
"--%>"
|
|
"-->"
|
|
"/>"
|
|
"<!"
|
|
"<!--"
|
|
"<"
|
|
"<%!--"
|
|
"<%"
|
|
"<%#"
|
|
"<%%="
|
|
"<%="
|
|
"</"
|
|
"</:"
|
|
"<:"
|
|
">"
|
|
"{"
|
|
"}"
|
|
] @tag.delimiter
|
|
|
|
; HEEx operators are highlighted as such
|
|
"=" @operator
|
|
|
|
; HEEx inherits the DOCTYPE tag from HTML
|
|
(doctype) @constant
|
|
|
|
; HEEx comments are highlighted as such
|
|
(comment) @comment
|
|
|
|
; HEEx text content is treated as markup
|
|
(text) @text
|
|
|
|
; 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
|
|
[
|
|
(attribute_value)
|
|
(quoted_attribute_value)
|
|
] @string
|
|
|
|
; HEEx components are highlighted as modules and function calls
|
|
(component_name [
|
|
(module) @type
|
|
(function) @function
|
|
"." @punctuation.delimiter
|
|
])
|