feat(vue): switch to new parser (#6233)

* feat(vue): switch to new parser

---------

Co-authored-by: Phạm Huy Hoàng <hoangtun0810@gmail.com>
This commit is contained in:
Christian Clason 2024-03-02 16:54:16 +01:00 committed by GitHub
parent a47540fd73
commit ada920f2a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 9 deletions

View file

@ -1,17 +1,38 @@
; inherits: html_tags
[
(directive_dynamic_argument)
(directive_dynamic_argument_value)
] @tag
"["
"]"
] @punctuation.bracket
(interpolation) @punctuation.special
(interpolation
(raw_text) @none)
(dynamic_directive_inner_value) @variable
(directive_name) @tag.attribute
; Accessing a component object's field
(":"
.
(directive_value) @variable.member)
("."
.
(directive_value) @property)
; @click is like onclick for HTML
("@"
.
(directive_value) @function.method)
; Used in v-slot, declaring position the element should be put in
("#"
.
(directive_value) @variable)
(directive_attribute
(quoted_attribute_value) @punctuation.special)
@ -19,7 +40,4 @@
(quoted_attribute_value
(attribute_value) @none))
[
(directive_modifier)
(directive_argument)
] @function.method
(directive_modifier) @function.method