aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorClay <connorlay@pm.me>2021-08-16 10:42:56 -0700
committerStephan Seitz <stephan.seitz@fau.de>2021-09-17 21:06:36 +0200
commit7933e5c6ab906f23312b3e7a13c91bba620bc7dc (patch)
tree5c0dd8df7252039d0da02ff63cfd8410f557c404 /queries
parentUpdate surface version, fix highlights (diff)
downloadnvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.tar
nvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.tar.gz
nvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.tar.bz2
nvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.tar.lz
nvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.tar.xz
nvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.tar.zst
nvim-treesitter-7933e5c6ab906f23312b3e7a13c91bba620bc7dc.zip
Add doctype highlights
Diffstat (limited to 'queries')
-rw-r--r--queries/heex/highlights.scm26
1 files changed, 12 insertions, 14 deletions
diff --git a/queries/heex/highlights.scm b/queries/heex/highlights.scm
index d9d0b0c66..c69e3d53e 100644
--- a/queries/heex/highlights.scm
+++ b/queries/heex/highlights.scm
@@ -1,35 +1,33 @@
-; HEEx text is highlighted as such
(text) @text
-
-; HEEx has two types of comments, both are highlighted as such
(comment) @comment
+(doctype) @constant
; HEEx attributes are highlighted as HTML attributes
(attribute_name) @tag.attribute
-
-; Attributes are highlighted as strings
(quoted_attribute_value) @string
-; HEEx supports HTML tags and are highlighted as such
[
- "<"
- ">"
- "</"
+ "%>"
"/>"
+ "<!"
+ "<"
"<%"
- "<%="
- "<%%="
"<%#"
- "%>"
+ "<%%="
+ "<%="
+ "</"
+ ">"
"{"
"}"
] @tag.delimiter
+[
+ "="
+] @operator
+
; HEEx tags are highlighted as HTML
(tag_name) @tag
; HEEx components are highlighted as types (Elixir modules)
(component_name) @type
-; HEEx operators
-["="] @operator