mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
Add doctype highlights
This commit is contained in:
parent
caf14b70ea
commit
92fe58ca83
1 changed files with 14 additions and 16 deletions
|
|
@ -1,35 +1,33 @@
|
||||||
; HEEx text is highlighted as such
|
|
||||||
(text) @text
|
(text) @text
|
||||||
|
|
||||||
; HEEx has two types of comments, both are highlighted as such
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
(doctype) @constant
|
||||||
|
|
||||||
; HEEx attributes are highlighted as HTML attributes
|
; HEEx attributes are highlighted as HTML attributes
|
||||||
(attribute_name) @tag.attribute
|
(attribute_name) @tag.attribute
|
||||||
|
|
||||||
; Attributes are highlighted as strings
|
|
||||||
(quoted_attribute_value) @string
|
(quoted_attribute_value) @string
|
||||||
|
|
||||||
; HEEx supports HTML tags and are highlighted as such
|
|
||||||
[
|
[
|
||||||
"<"
|
|
||||||
">"
|
|
||||||
"</"
|
|
||||||
"/>"
|
|
||||||
"<%"
|
|
||||||
"<%="
|
|
||||||
"<%%="
|
|
||||||
"<%#"
|
|
||||||
"%>"
|
"%>"
|
||||||
|
"/>"
|
||||||
|
"<!"
|
||||||
|
"<"
|
||||||
|
"<%"
|
||||||
|
"<%#"
|
||||||
|
"<%%="
|
||||||
|
"<%="
|
||||||
|
"</"
|
||||||
|
">"
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
] @tag.delimiter
|
] @tag.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"="
|
||||||
|
] @operator
|
||||||
|
|
||||||
; HEEx tags are highlighted as HTML
|
; HEEx tags are highlighted as HTML
|
||||||
(tag_name) @tag
|
(tag_name) @tag
|
||||||
|
|
||||||
; HEEx components are highlighted as types (Elixir modules)
|
; HEEx components are highlighted as types (Elixir modules)
|
||||||
(component_name) @type
|
(component_name) @type
|
||||||
|
|
||||||
; HEEx operators
|
|
||||||
["="] @operator
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue