aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/html_tags/highlights.scm3
-rw-r--r--queries/htmldjango/highlights.scm21
2 files changed, 19 insertions, 5 deletions
diff --git a/queries/html_tags/highlights.scm b/queries/html_tags/highlights.scm
index d51f9b27e..8d39afd49 100644
--- a/queries/html_tags/highlights.scm
+++ b/queries/html_tags/highlights.scm
@@ -2,8 +2,9 @@
(erroneous_end_tag_name) @error
(comment) @comment @spell
(attribute_name) @tag.attribute
-(attribute
+((attribute
(quoted_attribute_value) @string)
+ (#set! "priority" 99))
(text) @text @spell
((element (start_tag (tag_name) @_tag) (text) @text.title)
diff --git a/queries/htmldjango/highlights.scm b/queries/htmldjango/highlights.scm
index 848b455dd..814c7c420 100644
--- a/queries/htmldjango/highlights.scm
+++ b/queries/htmldjango/highlights.scm
@@ -23,13 +23,26 @@
(keyword) @keyword
-(operator) @operator
-(variable "|" @operator)
-(paired_statement "=" @operator)
+[
+ "|"
+ "="
+ (operator)
+] @operator
(keyword_operator) @keyword.operator
+(string) @string
+(filter [ "'" "\"" ] . (filter_argument) @string)
+
(number) @number
+((filter (filter_argument) @number)
+ (#lua-match? @number "^%d+$"))
(boolean) @boolean
+((filter (filter_argument) @boolean)
+ (#any-of? @boolean "True" "False"))
-(string) @string
+[
+ ":"
+ "'"
+ "\""
+] @punctuation.delimiter