Skip to content

Commit 784dd56

Browse files
refactor(vscode): update Vue grammar scope name to "text.html.vue" (#5856)
1 parent e3b9d09 commit 784dd56

File tree

8 files changed

+344
-344
lines changed

8 files changed

+344
-344
lines changed

extensions/vscode/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070
"grammars": [
7171
{
7272
"language": "vue",
73-
"scopeName": "source.vue",
73+
"scopeName": "text.html.vue",
7474
"path": "./syntaxes/vue.tmLanguage.json",
7575
"embeddedLanguages": {
76-
"source.vue": "vue",
76+
"text.html.vue": "vue",
7777
"text": "plaintext",
7878
"text.html.derivative": "html",
7979
"text.html.markdown": "markdown",
@@ -116,7 +116,7 @@
116116
],
117117
"embeddedLanguages": {
118118
"meta.embedded.block.vue": "vue",
119-
"source.vue": "vue",
119+
"text.html.vue": "vue",
120120
"text": "plaintext",
121121
"text.html.derivative": "html",
122122
"text.html.markdown": "markdown",
@@ -152,7 +152,7 @@
152152
],
153153
"embeddedLanguages": {
154154
"mdx.embedded.vue": "vue",
155-
"source.vue": "vue",
155+
"text.html.vue": "vue",
156156
"text": "plaintext",
157157
"text.html.derivative": "html",
158158
"text.html.markdown": "markdown",
@@ -184,7 +184,7 @@
184184
"scopeName": "vue.directives",
185185
"path": "./syntaxes/vue-directives.json",
186186
"injectTo": [
187-
"source.vue",
187+
"text.html.vue",
188188
"text.html.markdown",
189189
"text.html.derivative",
190190
"text.pug"
@@ -194,7 +194,7 @@
194194
"scopeName": "vue.interpolations",
195195
"path": "./syntaxes/vue-interpolations.json",
196196
"injectTo": [
197-
"source.vue",
197+
"text.html.vue",
198198
"text.html.markdown",
199199
"text.html.derivative",
200200
"text.pug"
@@ -204,14 +204,14 @@
204204
"scopeName": "vue.sfc.script.leading-operator-fix",
205205
"path": "./syntaxes/vue-sfc-script-leading-operator-fix.json",
206206
"injectTo": [
207-
"source.vue"
207+
"text.html.vue"
208208
]
209209
},
210210
{
211211
"scopeName": "vue.sfc.style.variable.injection",
212212
"path": "./syntaxes/vue-sfc-style-variable-injection.json",
213213
"injectTo": [
214-
"source.vue"
214+
"text.html.vue"
215215
]
216216
}
217217
],

extensions/vscode/syntaxes/markdown-vue.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"patterns": [
3333
{
34-
"include": "source.vue"
34+
"include": "text.html.vue"
3535
}
3636
]
3737
}

extensions/vscode/syntaxes/mdx-vue.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"name": "markup.code.vue.mdx",
3131
"patterns": [
3232
{
33-
"include": "source.vue"
33+
"include": "text.html.vue"
3434
}
3535
]
3636
},
@@ -54,7 +54,7 @@
5454
"name": "markup.code.vue.mdx",
5555
"patterns": [
5656
{
57-
"include": "source.vue"
57+
"include": "text.html.vue"
5858
}
5959
]
6060
}

extensions/vscode/syntaxes/vue-directives.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"injectionSelector": "L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute",
55
"patterns": [
66
{
7-
"include": "source.vue#vue-directives"
7+
"include": "text.html.vue#vue-directives"
88
}
99
],
1010
"scopeName": "vue.directives"

extensions/vscode/syntaxes/vue-interpolations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"injectionSelector": "L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block",
55
"patterns": [
66
{
7-
"include": "source.vue#vue-interpolations"
7+
"include": "text.html.vue#vue-interpolations"
88
}
99
],
1010
"scopeName": "vue.interpolations"

extensions/vscode/syntaxes/vue-sfc-script-leading-operator-fix.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
33
"fileTypes": [],
4-
"injectionSelector": "L:source.vue source.js, L:source.vue source.js.jsx, L:source.vue source.tsx",
4+
"injectionSelector": "L:text.html.vue source.js, L:text.html.vue source.js.jsx, L:text.html.vue source.tsx",
55
"patterns": [
66
{
77
"match": "^\\s*(<)(?=\\s+[_$[:alpha:]])",

extensions/vscode/syntaxes/vue.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
33
"name": "Vue",
4-
"scopeName": "source.vue",
4+
"scopeName": "text.html.vue",
55
"patterns": [
66
{
77
"include": "#vue-comments"
@@ -700,10 +700,10 @@
700700
{
701701
"begin": "(?<=>)",
702702
"end": "(?=<\\/)",
703-
"name": "source.vue",
703+
"name": "text.html.vue",
704704
"patterns": [
705705
{
706-
"include": "source.vue"
706+
"include": "text.html.vue"
707707
}
708708
]
709709
}

0 commit comments

Comments
 (0)