From 7fa30f411dea246b6acc316169cd2f8d14d0022a Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:17:42 -0500 Subject: [PATCH] html: Use `@attribute` highlight capture for HTML attributes (#20752) `@attribute` is the very first query on the https://zed.dev/docs/extensions/languages#syntax-highlighting captures list, we should be using it! This PR changes the highlights queries for HTML to use the `@attribute` capture instead of the `@property` capture for `attribute_name` nodes. Release Notes: - N/A Co-authored-by: Marshall Bowers --- extensions/html/languages/html/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/html/languages/html/highlights.scm b/extensions/html/languages/html/highlights.scm index 6bb0c23374..aa020037a7 100644 --- a/extensions/html/languages/html/highlights.scm +++ b/extensions/html/languages/html/highlights.scm @@ -1,7 +1,7 @@ (tag_name) @tag (erroneous_end_tag_name) @keyword (doctype) @tag.doctype -(attribute_name) @property +(attribute_name) @attribute (attribute_value) @string (comment) @comment