diff --git a/extensions/vscode/syntaxes/vue.tmLanguage.json b/extensions/vscode/syntaxes/vue.tmLanguage.json index 05d00ef84d..b52259355a 100644 --- a/extensions/vscode/syntaxes/vue.tmLanguage.json +++ b/extensions/vscode/syntaxes/vue.tmLanguage.json @@ -6,9 +6,6 @@ { "include": "#vue-comments" }, - { - "include": "text.html.basic#comment" - }, { "include": "#self-closing-tag" }, @@ -1286,6 +1283,16 @@ "patterns": [ { "include": "#vue-comments-key-value" + }, + { + "begin": "", + "name": "comment.block.vue" } ] }, diff --git a/extensions/vscode/tests/__snapshots__/grammar.spec.ts.snap b/extensions/vscode/tests/__snapshots__/grammar.spec.ts.snap index 00f1dbdb3e..1b8c0990da 100644 --- a/extensions/vscode/tests/__snapshots__/grammar.spec.ts.snap +++ b/extensions/vscode/tests/__snapshots__/grammar.spec.ts.snap @@ -134,68 +134,71 @@ exports[`grammar > directives.vue 1`] = ` > #^ source.vue > -#^ source.vue punctuation.definition.tag.begin.html.vue -# ^ source.vue -# ^^ source.vue entity.name.tag.--.html.vue -# ^^^^^^^^ source.vue meta.tag-stuff -# ^ source.vue meta.tag-stuff punctuation.definition.tag.end.html.vue +#^^^^ source.vue comment.block.vue punctuation.definition.comment.vue +# ^^^^^^ source.vue comment.block.vue +# ^^^ source.vue comment.block.vue punctuation.definition.comment.vue > -#^^^^^^^^^^^ source.vue +#^^ source.vue punctuation.definition.tag.begin.html.vue +# ^^^^^^^^ source.vue entity.name.tag.template.html.vue +# ^ source.vue punctuation.definition.tag.end.html.vue > -#^ source.vue text" +#^ source.vue" `; exports[`grammar > generic.vue 1`] = `