From 016e97314cd37c245368678179f1157f83a13821 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 28 Jun 2022 10:09:42 -0500 Subject: html: highlight punctuation * `/>` as in self-closing tags like `
` * `=` as in the separator between attribute name and value `` --- runtime/queries/html/highlights.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'runtime') 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 -- cgit v1.2.3-70-g09d2