From 5898dbce19b5a0f051f743e29b8f4a4714d371c1 Mon Sep 17 00:00:00 2001 From: dsl101 Date: Tue, 2 Feb 2021 09:53:14 +0000 Subject: [PATCH 1/2] Better v-on '@' shorthand match Support v-on shorthand with event handlers containing colon. --- Vue Component.sublime-syntax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index 07248dc..eae3278 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -663,7 +663,7 @@ contexts: - match: \b(v-[\w\:\.-]+)\b scope: entity.other.attribute-name.html push: js-attribute-value - - match: \B(:|@)([\w\.-]+)\b + - match: \B(:|@)([\w\:\.-]+)\b captures: 1: punctuation.definition.attribute.html 2: entity.other.attribute-name.html From 8490556dc3dd0391e1fbd2d232300c6eee14ba3b Mon Sep 17 00:00:00 2001 From: dsl101 Date: Tue, 2 Feb 2021 11:24:01 +0000 Subject: [PATCH 2/2] Edit the correct file :) Applied the same change to the .yaml-macros file --- Vue Component.sublime-syntax.yaml-macros | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vue Component.sublime-syntax.yaml-macros b/Vue Component.sublime-syntax.yaml-macros index 732b88a..04f7d70 100644 --- a/Vue Component.sublime-syntax.yaml-macros +++ b/Vue Component.sublime-syntax.yaml-macros @@ -42,7 +42,7 @@ contexts: !merge - match: \b(v-[\w\:\.-]+)\b scope: entity.other.attribute-name.html push: js-attribute-value - - match: \B(:|@)([\w\.-]+)\b + - match: \B(:|@)([\w\:\.-]+)\b captures: 1: punctuation.definition.attribute.html 2: entity.other.attribute-name.html