nvim-treesitter/queries/heex/highlights.scm

57 lines
833 B
Scheme
Raw Normal View History

2022-01-30 16:15:24 -08:00
; HEEx delimiters
[
2021-08-16 10:42:56 -07:00
"%>"
2022-01-23 18:09:29 -08:00
"--%>"
"-->"
"/>"
2021-08-16 10:42:56 -07:00
"<!"
2022-01-23 18:09:29 -08:00
"<!--"
2021-08-16 10:42:56 -07:00
"<"
2022-01-23 18:09:29 -08:00
"<%!--"
"<%"
"<%#"
2021-08-16 10:42:56 -07:00
"<%%="
"<%="
"</"
2022-01-30 16:15:24 -08:00
"</:"
"<:"
2021-08-16 10:42:56 -07:00
">"
"{"
"}"
] @tag.delimiter
2022-01-30 16:15:24 -08:00
; HEEx operators are highlighted as such
2022-01-23 18:09:29 -08:00
"=" @operator
; HEEx inherits the DOCTYPE tag from HTML
(doctype) @constant
2021-08-16 10:42:56 -07:00
2022-01-23 18:09:29 -08:00
; HEEx comments are highlighted as such
(comment) @comment
; HEEx text content is treated as markup
(text) @text
; Tree-sitter parser errors
(ERROR) @error
2022-01-30 16:15:24 -08:00
; HEEx tags and slots are highlighted as HTML
[
(tag_name)
(slot_name)
] @tag
2022-01-23 18:09:29 -08:00
; HEEx attributes are highlighted as HTML attributes
(attribute_name) @tag.attribute
[
(attribute_value)
(quoted_attribute_value)
] @string
2022-01-23 18:09:29 -08:00
; HEEx components are highlighted as modules and function calls
(component_name [
(module) @type
(function) @function
"." @punctuation.delimiter
])