Unnamed repository; edit this file 'description' to name the repository.
html: highlight punctuation
* `/>` as in self-closing tags like `<hr/>` * `=` as in the separator between attribute name and value `<a href="bar">`
Michael Davis 2022-07-01
parent 7cf88f2 · commit 016e973
-rw-r--r--runtime/queries/html/highlights.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/queries/html/highlights.scm b/runtime/queries/html/highlights.scm
index 2c70a9c3..fff015b5 100644
--- a/runtime/queries/html/highlights.scm
+++ b/runtime/queries/html/highlights.scm
@@ -2,11 +2,18 @@
(erroneous_end_tag_name) @tag.error
(doctype) @constant
(attribute_name) @attribute
-(attribute_value) @string
(comment) @comment
[
+ "\""
+ (attribute_value)
+] @string
+
+[
"<"
">"
"</"
+ "/>"
] @punctuation.bracket
+
+"=" @punctuation.delimiter