Skip to content

Commit

Permalink
small fix syntax highlighting in vue.js files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita0x committed Sep 15, 2024
1 parent 5ce77de commit 81abcc5
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions runtime/queries/vue/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,25 @@
(attribute
(attribute_name) @attribute
(quoted_attribute_value
(attribute_value) @string)
(attribute_value) @string)?
)

(attribute
(attribute_name) @attribute
)

(attribute
(attribute_name) @attribute
"=" @attribute_name
(#eq? @attribute_name "=")
) @attribute

(directive_attribute
(directive_name) @keyword
"=" @attribute_name
(#eq? @attribute_name "=")
) @attribute.empty

(comment) @comment

[
Expand All @@ -18,4 +34,6 @@
"</"
"{{"
"}}"
] @punctuation.bracket
"/>"
] @punctuation.bracket

0 comments on commit 81abcc5

Please sign in to comment.