helix-mods/runtime/queries/html/highlights.scm
Michael Davis 016e97314c html: highlight punctuation
* `/>` as in self-closing tags like `<hr/>`
* `=` as in the separator between attribute name and value `<a href="bar">`
2022-07-01 11:04:23 +02:00

19 lines
239 B
Scheme

(tag_name) @tag
(erroneous_end_tag_name) @tag.error
(doctype) @constant
(attribute_name) @attribute
(comment) @comment
[
"\""
(attribute_value)
] @string
[
"<"
">"
"</"
"/>"
] @punctuation.bracket
"=" @punctuation.delimiter