Skip to content

Commit

Permalink
small fix syntax highlighting in vue.js files (#11706)
Browse files Browse the repository at this point in the history
* small fix syntax highlighting in vue.js files

* changes after review by mikedavis
  • Loading branch information
Nikita0x authored Sep 21, 2024
1 parent 5717aa8 commit 274c660
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions runtime/queries/vue/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

(attribute
(attribute_name) @attribute
(quoted_attribute_value
(attribute_value) @string)
)
[(attribute_value) (quoted_attribute_value)]? @string)

(directive_attribute
(directive_name) @attribute
(directive_argument)? @attribute
(directive_modifiers)? @attribute
[(attribute_value) (quoted_attribute_value)]? @string)

(comment) @comment

Expand All @@ -18,4 +22,7 @@
"</"
"{{"
"}}"
] @punctuation.bracket
"/>"
] @punctuation.bracket
"=" @punctuation.delimiter

0 comments on commit 274c660

Please sign in to comment.