diff options
author | Michael Davis | 2022-06-28 15:09:42 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-07-01 09:04:23 +0000 |
commit | 016e97314cd37c245368678179f1157f83a13821 (patch) | |
tree | eb53e81219b3f856ad2299540afb1de36ae4d59b | |
parent | 7cf88f2bacb92e1054294137cc4d82792f4b60a4 (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.scm | 9 |
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 |