summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelianiva <dicha.arkana03@gmail.com>2021-02-16 00:41:58 +0700
committerStephan Seitz <stephan.lauf@yahoo.de>2021-02-23 16:27:16 +0100
commit25bb379a05c8d69b15ac0bda87b0d30c0f28a336 (patch)
tree376079c8e16e5451c90a8afacdbe554a471fa56b
parent72d38fc44bce5f3cc1c6209a1550f41f7524e775 (diff)
fix: missing erroneous end tag
-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)