aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Davis2022-06-28 15:09:42 +0000
committerBlaž Hrastnik2022-07-01 09:04:23 +0000
commit016e97314cd37c245368678179f1157f83a13821 (patch)
treeeb53e81219b3f856ad2299540afb1de36ae4d59b
parent7cf88f2bacb92e1054294137cc4d82792f4b60a4 (diff)
html: highlight punctuation
* `/>` as in self-closing tags like `<hr/>` * `=` as in the separator between attribute name and value `<a href="bar">`
-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