Skip to content

Commit bca448b

Browse files
authored
Add syntax highlighting to HTML entities (#103)
This aligns HEEx with the changes brought by zed-industries/zed#48629
1 parent 3bf9e1b commit bca448b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

languages/heex/highlights.scm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
"}"
1616
] @punctuation.bracket
1717

18-
; HEEx partial expressions can use the following tag delimiters:
18+
; HEEx directive expressions can use the following tag delimiters:
1919
; `<%` and `%>`
2020
; `<%=` and `%>`
21+
; `<%%` and `%>`
2122
; `<%%=` and `%>`
2223
(directive) @keyword
2324

@@ -30,6 +31,9 @@
3031
; HEEx operators are highlighted the same as HTML operators
3132
"=" @punctuation.delimiter.html
3233

34+
; HEEx entities are highligted the same as HTML entities
35+
(entity) @string.special
36+
3337
; HEEx inherits the DOCTYPE tag from HTML
3438
(doctype) @tag.doctype
3539

0 commit comments

Comments
 (0)