mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
51 lines
787 B
Scheme
51 lines
787 B
Scheme
; HEEx tag and component delimiters
|
|
[
|
|
"%>"
|
|
"--%>"
|
|
"-->"
|
|
"/>"
|
|
"<!"
|
|
"<!--"
|
|
"<"
|
|
"<%!--"
|
|
"<%"
|
|
"<%#"
|
|
"<%%="
|
|
"<%="
|
|
"</"
|
|
">"
|
|
"{"
|
|
"}"
|
|
] @tag.delimiter
|
|
|
|
; HEEx operators
|
|
"=" @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
|
|
|
|
; HEEx text content is treated as markup
|
|
(text) @text
|
|
|
|
; Tree-sitter parser errors
|
|
(ERROR) @error
|
|
|
|
; 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
|
|
])
|