Files
oak-gpui/extensions/html/languages/html/highlights.scm
T
uncenterandMarshall Bowers 7fa30f411d 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 <elliott.codes@gmail.com>
2025-01-06 23:17:42 +00:00

17 lines
220 B
Scheme

(tag_name) @tag
(erroneous_end_tag_name) @keyword
(doctype) @tag.doctype
(attribute_name) @attribute
(attribute_value) @string
(comment) @comment
"=" @operator
[
"<"
">"
"<!"
"</"
"/>"
] @punctuation.bracket