Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

html: Improve syntax highlighting (#28184)

chbke4f692ac750f
diff --git a/extensions/html/languages/html/highlights.scm b/extensions/html/languages/html/highlights.scm
index aa020037a73..1cc0601b764 100644
--- a/extensions/html/languages/html/highlights.scm
+++ b/extensions/html/languages/html/highlights.scm
@@ -1,11 +1,14 @@
(tag_name) @tag
-(erroneous_end_tag_name) @keyword
(doctype) @tag.doctype
(attribute_name) @attribute
-(attribute_value) @string
+[
+ "\""
+ "'"
+ (attribute_value)
+] @string
(comment) @comment
-"=" @operator
+"=" @punctuation.delimiter.html
[
"<"
@@ -13,4 +16,4 @@
"<!"
"</"
"/>"
-] @punctuation.bracket
+] @punctuation.bracket.html