Skip to content

Commit

Permalink
html: Use @attribute highlight capture for HTML attributes (#20752)
Browse files Browse the repository at this point in the history
`@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 <elliott.codes@gmail.com>
  • Loading branch information
uncenter and maxdeviant authored Jan 6, 2025
1 parent 7075f34 commit 7fa30f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/html/languages/html/highlights.scm
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 7fa30f4

Please sign in to comment.