Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/heex/highlights.scm')
| -rw-r--r-- | runtime/queries/heex/highlights.scm | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/runtime/queries/heex/highlights.scm b/runtime/queries/heex/highlights.scm index 75537fa7..d63853b5 100644 --- a/runtime/queries/heex/highlights.scm +++ b/runtime/queries/heex/highlights.scm @@ -2,10 +2,14 @@ ; HEEx delimiters [ "<!" + "<!--" "<" + "<%!--" "<%#" ">" "</" + "--%>" + "-->" "/>" ; These could be `@keyword`s but the closing `>` wouldn't be highlighted ; as `@keyword` @@ -30,13 +34,7 @@ (doctype) @constant ; HEEx comments are highlighted as such -[ - "<!--" - "-->" - "<%!--" - "--%>" - (comment) -] @comment +(comment) @comment ; HEEx tags are highlighted as HTML (tag_name) @tag @@ -51,13 +49,10 @@ (quoted_attribute_value) ] @string -; HEEx special attributes are keywords -(special_attribute_name) @keyword - ; HEEx components are highlighted as Elixir modules and functions (component_name [ - (module) @namespace + (module) @module (function) @function "." @punctuation.delimiter ]) |