Skip to content

Commit 8d807f5

Browse files
Nikita0xrmburg
authored andcommitted
small fix syntax highlighting in vue.js files (helix-editor#11706)
* small fix syntax highlighting in vue.js files * changes after review by mikedavis
1 parent 4f4f434 commit 8d807f5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

runtime/queries/vue/highlights.scm

+11-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
(attribute
88
(attribute_name) @attribute
9-
(quoted_attribute_value
10-
(attribute_value) @string)
11-
)
9+
[(attribute_value) (quoted_attribute_value)]? @string)
10+
11+
(directive_attribute
12+
(directive_name) @attribute
13+
(directive_argument)? @attribute
14+
(directive_modifiers)? @attribute
15+
[(attribute_value) (quoted_attribute_value)]? @string)
1216

1317
(comment) @comment
1418

@@ -18,4 +22,7 @@
1822
"</"
1923
"{{"
2024
"}}"
21-
] @punctuation.bracket
25+
"/>"
26+
] @punctuation.bracket
27+
"=" @punctuation.delimiter
28+

0 commit comments

Comments
 (0)