From 45ee50d02bc3fa1b9cc3770da41242b07afcd6f3 Mon Sep 17 00:00:00 2001 From: Omar Valdez Date: Wed, 18 Sep 2024 22:03:28 -0700 Subject: feat(htmldjango): improve punctuation highlighting In Django templates `{{` and `{%` are interpolations, so they should be highlighted as @punctuation.special. Don't highlight quotes as delimiters (consistency) and add missing comma delimiter. --- queries/htmldjango/highlights.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'queries') diff --git a/queries/htmldjango/highlights.scm b/queries/htmldjango/highlights.scm index 5648e72fc..3992b826d 100644 --- a/queries/htmldjango/highlights.scm +++ b/queries/htmldjango/highlights.scm @@ -10,7 +10,7 @@ "{%" "%}" (end_paired_statement) -] @punctuation.bracket +] @punctuation.special (tag_name) @function @@ -69,6 +69,5 @@ [ ":" - "'" - "\"" + "," ] @punctuation.delimiter -- cgit v1.2.3-70-g09d2