summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/svelte/highlights.scm21
1 files changed, 15 insertions, 6 deletions
diff --git a/queries/svelte/highlights.scm b/queries/svelte/highlights.scm
index 7eff09b0..ea7c3c87 100644
--- a/queries/svelte/highlights.scm
+++ b/queries/svelte/highlights.scm
@@ -1,9 +1,3 @@
-(tag_name) @tag
-(attribute_name) @property
-(attribute_value) @string
-(quoted_attribute_value) @string
-(comment) @comment
-
((element (start_tag (tag_name) @_tag) (text) @text.title)
(#match? @_tag "^(h[0-9]|title)$"))
@@ -30,6 +24,21 @@
(quoted_attribute_value (attribute_value) @text.uri))
(#eq? @_attr "href"))
+(tag_name) @tag
+(attribute_name) @property
+(errorneous_end_tag_name) @error
+(comment) @comment
+
+[
+ (attribute_value)
+ (quoted_attribute_value)
+] @string
+
+[
+ (text)
+ (raw_text_expr)
+] @none
+
[
(special_block_keyword)
(then)