diff options
Diffstat (limited to 'queries/heex/highlights.scm')
| -rw-r--r-- | queries/heex/highlights.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/queries/heex/highlights.scm b/queries/heex/highlights.scm new file mode 100644 index 000000000..d9d0b0c66 --- /dev/null +++ b/queries/heex/highlights.scm @@ -0,0 +1,35 @@ +; HEEx text is highlighted as such +(text) @text + +; HEEx has two types of comments, both are highlighted as such +(comment) @comment + +; 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 + +; HEEx tags are highlighted as HTML +(tag_name) @tag + +; HEEx components are highlighted as types (Elixir modules) +(component_name) @type + +; HEEx operators +["="] @operator |
