Skip to content

Commit 466d8f7

Browse files
FichteFollskyronic
authored andcommitted
Add embed_scope to JavaScript embeds
Allows to exclude vue embeds from linting, for example, using `source.js - source.js.embedded.vue`.
1 parent 074fbc0 commit 466d8f7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Vue Component.sublime-syntax

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ contexts:
642642
- match: '{{'
643643
scope: punctuation.definition.template.begin.html
644644
embed: scope:source.js
645+
embed_scope: source.js.embedded.vue
645646
escape: '}}'
646647
escape_captures:
647648
0: punctuation.definition.template.end.html
@@ -674,12 +675,14 @@ contexts:
674675
- match: '"'
675676
scope: punctuation.definition.string.begin.html
676677
embed: scope:source.js
678+
embed_scope: source.js.embedded.vue
677679
escape: '"'
678680
escape_captures:
679681
0: punctuation.definition.string.end.html
680682
- match: "'"
681683
scope: punctuation.definition.string.begin.html
682684
embed: scope:source.js
685+
embed_scope: source.js.embedded.vue
683686
escape: "'"
684687
escape_captures:
685688
0: punctuation.definition.string.end.html

Vue Component.sublime-syntax.yaml-macros

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ contexts: !merge
1717
- match: '{{'
1818
scope: punctuation.definition.template.begin.html
1919
embed: scope:source.js
20+
embed_scope: source.js.embedded.vue
2021
escape: '}}'
2122
escape_captures:
2223
0: punctuation.definition.template.end.html
@@ -52,12 +53,14 @@ contexts: !merge
5253
- match: '"'
5354
scope: punctuation.definition.string.begin.html
5455
embed: scope:source.js
56+
embed_scope: source.js.embedded.vue
5557
escape: '"'
5658
escape_captures:
5759
0: punctuation.definition.string.end.html
5860
- match: "'"
5961
scope: punctuation.definition.string.begin.html
6062
embed: scope:source.js
63+
embed_scope: source.js.embedded.vue
6164
escape: "'"
6265
escape_captures:
6366
0: punctuation.definition.string.end.html

0 commit comments

Comments
 (0)
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