From 2b5b12f1b8099e98b2d6e89333c4edc91132206a Mon Sep 17 00:00:00 2001 From: AltCode Date: Wed, 4 Mar 2026 22:39:31 +0100 Subject: [PATCH] Add syntax highlighting to HTML entities This aligns HEEx with the changes brought by zed-industries/zed#48629 --- languages/heex/highlights.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/languages/heex/highlights.scm b/languages/heex/highlights.scm index d977bd5..6c83d29 100644 --- a/languages/heex/highlights.scm +++ b/languages/heex/highlights.scm @@ -15,9 +15,10 @@ "}" ] @punctuation.bracket -; HEEx partial expressions can use the following tag delimiters: +; HEEx directive expressions can use the following tag delimiters: ; `<%` and `%>` ; `<%=` and `%>` +; `<%%` and `%>` ; `<%%=` and `%>` (directive) @keyword @@ -30,6 +31,9 @@ ; HEEx operators are highlighted the same as HTML operators "=" @punctuation.delimiter.html +; HEEx entities are highligted the same as HTML entities +(entity) @string.special + ; HEEx inherits the DOCTYPE tag from HTML (doctype) @tag.doctype