diff options
Diffstat (limited to 'runtime/queries/heex/highlights.scm')
-rw-r--r-- | runtime/queries/heex/highlights.scm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/runtime/queries/heex/highlights.scm b/runtime/queries/heex/highlights.scm index 6d8816de..75537fa7 100644 --- a/runtime/queries/heex/highlights.scm +++ b/runtime/queries/heex/highlights.scm @@ -2,14 +2,10 @@ ; HEEx delimiters [ "<!" - "<!--" "<" - "<%!--" "<%#" ">" "</" - "--%>" - "-->" "/>" ; These could be `@keyword`s but the closing `>` wouldn't be highlighted ; as `@keyword` @@ -34,7 +30,13 @@ (doctype) @constant ; HEEx comments are highlighted as such -(comment) @comment +[ + "<!--" + "-->" + "<%!--" + "--%>" + (comment) +] @comment ; HEEx tags are highlighted as HTML (tag_name) @tag |