mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
53 lines
796 B
Scheme
53 lines
796 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 @spell
|
|
|
|
; HEEx text content is treated as markup
|
|
(text) @text
|
|
|
|
; 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
|
|
])
|