From af5a8656b76a8f81af70fb8925afde775af7ff75 Mon Sep 17 00:00:00 2001 From: Anirudh Sanjeev Date: Fri, 2 Nov 2018 16:20:48 -0400 Subject: [PATCH 1/6] Revert "source.scss -> source.css.scss" This reverts commit 016f5527cfadd4340dd666506d26f07100c71301. --- Vue Component.sublime-syntax | 4 ++-- Vue Component.sublime-syntax.yaml-macros | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index e7026b6..f377e4e 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -723,8 +723,8 @@ contexts: set: - include: style-close-tag - match: '' - embed_scope: source.css.scss.embedded.html - embed: scope:source.css.scss + embed_scope: source.scss.embedded.html + embed: scope:source.scss escape: (?i)(?=(?:-->\s*)? Date: Tue, 20 Nov 2018 11:19:33 -0500 Subject: [PATCH 2/6] Update scope to match new LESS extension --- Vue Component.sublime-syntax | 50 ++++++++++++------------ Vue Component.sublime-syntax.yaml-macros | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index f377e4e..1eacc6b 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -708,8 +708,8 @@ contexts: scope: punctuation.definition.tag.end.html set: - include: style-close-tag - - match: '' - embed_scope: source.sass.embedded.html + - embed_scope: source.sass.embedded.html + match: '' embed: scope:source.sass escape: (?i)(?=(?:-->\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)? Date: Tue, 13 Nov 2018 04:44:13 +0100 Subject: [PATCH 3/6] Add embed_scope to JavaScript embeds Allows to exclude vue embeds from linting, for example, using `source.js - source.js.embedded.vue`. --- Vue Component.sublime-syntax | 3 +++ Vue Component.sublime-syntax.yaml-macros | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index 1eacc6b..80d7313 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -642,6 +642,7 @@ contexts: - match: '{{' scope: punctuation.definition.template.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: '}}' escape_captures: 0: punctuation.definition.template.end.html @@ -674,12 +675,14 @@ contexts: - match: '"' scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: '"' escape_captures: 0: punctuation.definition.string.end.html - match: "'" scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: "'" escape_captures: 0: punctuation.definition.string.end.html diff --git a/Vue Component.sublime-syntax.yaml-macros b/Vue Component.sublime-syntax.yaml-macros index d4cf034..558de4f 100644 --- a/Vue Component.sublime-syntax.yaml-macros +++ b/Vue Component.sublime-syntax.yaml-macros @@ -17,6 +17,7 @@ contexts: !merge - match: '{{' scope: punctuation.definition.template.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: '}}' escape_captures: 0: punctuation.definition.template.end.html @@ -52,12 +53,14 @@ contexts: !merge - match: '"' scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: '"' escape_captures: 0: punctuation.definition.string.end.html - match: "'" scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: "'" escape_captures: 0: punctuation.definition.string.end.html From 25ffe66bd2d6546e2a9705c016b660cdbf8baebd Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Tue, 13 Nov 2018 04:49:24 +0100 Subject: [PATCH 4/6] Add meta.template scope for mustache expressions --- Vue Component.sublime-syntax | 19 ++++++++++++------- Vue Component.sublime-syntax.yaml-macros | 19 ++++++++++++------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index 80d7313..6e10fbd 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -639,13 +639,18 @@ contexts: - include: tag-event-attribute - include: tag-generic-attribute mustache-expression: - - match: '{{' - scope: punctuation.definition.template.begin.html - embed: scope:source.js - embed_scope: source.js.embedded.vue - escape: '}}' - escape_captures: - 0: punctuation.definition.template.end.html + - match: (?={{) + set: + - meta_scope: meta.template.vue + - match: '{{' + scope: punctuation.definition.template.begin.html + embed: scope:source.js + embed_scope: source.js.embedded.vue + escape: '}}' + escape_captures: + 0: meta.template.vue punctuation.definition.template.end.html + - match: '' + pop: true template-tag: - match: (<)((?i:template))\b diff --git a/Vue Component.sublime-syntax.yaml-macros b/Vue Component.sublime-syntax.yaml-macros index 558de4f..7e5c549 100644 --- a/Vue Component.sublime-syntax.yaml-macros +++ b/Vue Component.sublime-syntax.yaml-macros @@ -14,13 +14,18 @@ contexts: !merge - include: mustache-expression mustache-expression: - - match: '{{' - scope: punctuation.definition.template.begin.html - embed: scope:source.js - embed_scope: source.js.embedded.vue - escape: '}}' - escape_captures: - 0: punctuation.definition.template.end.html + - match: '(?={{)' + set: + - meta_scope: meta.template.vue + - match: '{{' + scope: punctuation.definition.template.begin.html + embed: scope:source.js + embed_scope: source.js.embedded.vue + escape: '}}' + escape_captures: + 0: meta.template.vue punctuation.definition.template.end.html + - match: '' + pop: true tag-attributes: !prepend - include: vue-directive From 0ece5c7e520141b42604006047de319212157cf2 Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Mon, 23 Dec 2019 22:54:24 +0800 Subject: [PATCH 5/6] Remove the first_line_match from .sublime-syntax (#191) Signed-off-by: Jack Cherng --- Vue Component.sublime-syntax | 1 - 1 file changed, 1 deletion(-) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index 6e10fbd..e7a15b2 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -2,7 +2,6 @@ --- name: Vue Component file_extensions: [vue] -first_line_match: (?i)<(!DOCTYPE\s*)?html scope: text.html.vue variables: attribute_char: (?:[^ "'>/=\x00-\x1f\x7f-\x9f]) From 6eb71bc6bba5e6a284b6d1d3154484da6f366e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Bjug=C3=A5rd?= Date: Tue, 18 Jun 2019 10:39:24 +0200 Subject: [PATCH 6/6] BUG #183: Correct template-tag regex --- Vue Component.sublime-syntax | 2 +- Vue Component.sublime-syntax.yaml-macros | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index e7a15b2..07248dc 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -652,7 +652,7 @@ contexts: pop: true template-tag: - - match: (<)((?i:template))\b + - match: (<)((?i:template(>| )))\b captures: 0: meta.tag.template.begin.html 1: punctuation.definition.tag.begin.html diff --git a/Vue Component.sublime-syntax.yaml-macros b/Vue Component.sublime-syntax.yaml-macros index 7e5c549..732b88a 100644 --- a/Vue Component.sublime-syntax.yaml-macros +++ b/Vue Component.sublime-syntax.yaml-macros @@ -31,7 +31,7 @@ contexts: !merge - include: vue-directive template-tag: - - match: (<)((?i:template))\b + - match: (<)((?i:template(>| )))\b captures: 0: meta.tag.template.begin.html 1: punctuation.definition.tag.begin.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