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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy