mirror of https://github.com/helix-editor/helix
html: highlight punctuation
* `/>` as in self-closing tags like `<hr/>` * `=` as in the separator between attribute name and value `<a href="bar">`pull/2938/head
parent
7cf88f2bac
commit
016e97314c
|
@ -2,11 +2,18 @@
|
||||||
(erroneous_end_tag_name) @tag.error
|
(erroneous_end_tag_name) @tag.error
|
||||||
(doctype) @constant
|
(doctype) @constant
|
||||||
(attribute_name) @attribute
|
(attribute_name) @attribute
|
||||||
(attribute_value) @string
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
"\""
|
||||||
|
(attribute_value)
|
||||||
|
] @string
|
||||||
|
|
||||||
[
|
[
|
||||||
"<"
|
"<"
|
||||||
">"
|
">"
|
||||||
"</"
|
"</"
|
||||||
|
"/>"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
"=" @punctuation.delimiter
|
||||||
|
|
Loading…
Reference in New Issue