2021-05-05 16:40:36 +07:00
|
|
|
; inherits: html_tags
|
2024-02-19 00:00:07 +09:00
|
|
|
|
2021-02-08 18:48:14 +01:00
|
|
|
[
|
2024-03-02 16:54:16 +01:00
|
|
|
"["
|
|
|
|
|
"]"
|
|
|
|
|
] @punctuation.bracket
|
2021-02-08 18:48:14 +01:00
|
|
|
|
2025-10-11 15:34:39 -07:00
|
|
|
[
|
|
|
|
|
":"
|
|
|
|
|
"."
|
2025-10-15 23:17:41 -07:00
|
|
|
] @character.special
|
2025-10-11 15:34:39 -07:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(interpolation)
|
|
|
|
|
"@"
|
|
|
|
|
] @punctuation.special
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-02-08 18:48:14 +01:00
|
|
|
(interpolation
|
|
|
|
|
(raw_text) @none)
|
|
|
|
|
|
2024-03-02 16:54:16 +01:00
|
|
|
(dynamic_directive_inner_value) @variable
|
|
|
|
|
|
2021-12-18 15:31:09 +08:00
|
|
|
(directive_name) @tag.attribute
|
|
|
|
|
|
2024-03-02 16:54:16 +01:00
|
|
|
; 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)
|
|
|
|
|
|
2021-12-18 15:31:09 +08:00
|
|
|
(directive_attribute
|
|
|
|
|
(quoted_attribute_value) @punctuation.special)
|
|
|
|
|
|
|
|
|
|
(directive_attribute
|
2024-01-06 15:05:50 +09:00
|
|
|
(quoted_attribute_value
|
|
|
|
|
(attribute_value) @none))
|
2021-12-18 15:31:09 +08:00
|
|
|
|
2024-03-02 16:54:16 +01:00
|
|
|
(directive_modifier) @function.method
|
2025-06-18 16:22:31 +01:00
|
|
|
|
|
|
|
|
((template_element) @_template
|
|
|
|
|
(#set! @_template bo.commentstring "<!-- %s -->"))
|