We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc31e7 commit ec85fb9Copy full SHA for ec85fb9
runtime/queries/heex/highlights.scm
@@ -2,14 +2,10 @@
2
; HEEx delimiters
3
[
4
"<!"
5
- "<!--"
6
"<"
7
- "<%!--"
8
"<%#"
9
">"
10
"</"
11
- "--%>"
12
- "-->"
13
"/>"
14
; These could be `@keyword`s but the closing `>` wouldn't be highlighted
15
; as `@keyword`
@@ -34,7 +30,13 @@
34
30
(doctype) @constant
35
31
36
32
; HEEx comments are highlighted as such
37
-(comment) @comment
33
+[
+ "<!--"
+ "-->"
+ "<%!--"
+ "--%>"
38
+ (comment)
39
+] @comment
40
41
; HEEx tags are highlighted as HTML
42
(tag_name) @tag
runtime/queries/heex/injections.scm
@@ -19,3 +19,6 @@
19
; <link href={ Routes.static_path(..) } />
20
((expression (expression_value) @injection.content)
21
(#set! injection.language "elixir"))
22
+
23
+((comment) @injection.content
24
+ (#set! injection.language "comment"))
0 commit comments