From 25bb379a05c8d69b15ac0bda87b0d30c0f28a336 Mon Sep 17 00:00:00 2001 From: elianiva Date: Tue, 16 Feb 2021 00:41:58 +0700 Subject: [PATCH] fix: missing erroneous end tag --- queries/svelte/highlights.scm | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/queries/svelte/highlights.scm b/queries/svelte/highlights.scm index 7eff09b04..ea7c3c877 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)