From 81abcc5efb4bb23647dceb7deff08725bcb1965e Mon Sep 17 00:00:00 2001 From: Nikita0x Date: Sun, 15 Sep 2024 23:16:56 +0300 Subject: [PATCH] small fix syntax highlighting in vue.js files --- runtime/queries/vue/highlights.scm | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/runtime/queries/vue/highlights.scm b/runtime/queries/vue/highlights.scm index f90ae4297f32..a08a13e33ac1 100644 --- a/runtime/queries/vue/highlights.scm +++ b/runtime/queries/vue/highlights.scm @@ -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 [ @@ -18,4 +34,6 @@ "" +] @punctuation.bracket +