aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Chris Lopez <hello@michaelchris.space>2021-12-18 15:31:09 +0800
committerStephan Seitz <stephan.seitz@fau.de>2022-01-12 12:10:07 +0100
commit1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278 (patch)
tree6845773ee8b355e9a0501ba45955fbc504d8bf2e
parenthighlights(html_tags): more specific attribute_value target (diff)
downloadnvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.tar
nvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.tar.gz
nvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.tar.bz2
nvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.tar.lz
nvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.tar.xz
nvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.tar.zst
nvim-treesitter-1f8ef8fe52fb8aff0b8ef68e13399d0fd8df2278.zip
highlights(vue): improve vue highlights
- remove template_name and element and make more specific targeting
-rw-r--r--queries/vue/highlights.scm13
1 files changed, 8 insertions, 5 deletions
diff --git a/queries/vue/highlights.scm b/queries/vue/highlights.scm
index 093598b74..ae89d65a0 100644
--- a/queries/vue/highlights.scm
+++ b/queries/vue/highlights.scm
@@ -1,20 +1,23 @@
; inherits: html_tags
[
- (template_element)
- (directive_attribute)
(directive_dynamic_argument)
(directive_dynamic_argument_value)
- (component)
] @tag
-(element) @string
(interpolation) @punctuation.special
(interpolation
(raw_text) @none)
+(directive_name) @tag.attribute
+
+(directive_attribute
+ (quoted_attribute_value) @punctuation.special)
+
+(directive_attribute
+ (quoted_attribute_value (attribute_value) @none))
+
[
(directive_modifier)
- (directive_name)
(directive_argument)
] @method