Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use `@tag.doctype` for HTML doctype highlights (#18024)
Marshall Bowers97dc1d193f9a
diff --git a/docs/src/extensions/languages.md b/docs/src/extensions/languages.mdindex c0032853032..174a27c6e61 100644--- a/docs/src/extensions/languages.md+++ b/docs/src/extensions/languages.md@@ -123,6 +123,7 @@ This query marks strings, object keys, and numbers for highlighting. The followi| @string.special | Captures special strings || @string.special.symbol | Captures special symbols || @tag | Captures tags |+| @tag.doctype | Captures doctypes (e.g., in HTML) || @text.literal | Captures literal text || @title | Captures titles || @type | Captures types |diff --git a/extensions/astro/languages/astro/highlights.scm b/extensions/astro/languages/astro/highlights.scmindex 491e8cc337c..a565e22b6e2 100644--- a/extensions/astro/languages/astro/highlights.scm+++ b/extensions/astro/languages/astro/highlights.scm@@ -1,6 +1,6 @@(tag_name) @tag(erroneous_end_tag_name) @keyword-(doctype) @constant+(doctype) @tag.doctype(attribute_name) @property(attribute_value) @string(comment) @commentdiff --git a/extensions/elixir/languages/heex/highlights.scm b/extensions/elixir/languages/heex/highlights.scmindex 5252b71facd..9662c955242 100644--- a/extensions/elixir/languages/heex/highlights.scm+++ b/extensions/elixir/languages/heex/highlights.scm@@ -27,7 +27,7 @@"=" @operator; HEEx inherits the DOCTYPE tag from HTML-(doctype) @constant+(doctype) @tag.doctype(comment) @commentdiff --git a/extensions/html/languages/html/highlights.scm b/extensions/html/languages/html/highlights.scmindex e2b8e35bf4a..6bb0c23374b 100644--- a/extensions/html/languages/html/highlights.scm+++ b/extensions/html/languages/html/highlights.scm@@ -1,6 +1,6 @@-(tag_name) @keyword+(tag_name) @tag(erroneous_end_tag_name) @keyword-(doctype) @constant+(doctype) @tag.doctype(attribute_name) @property(attribute_value) @string(comment) @comment