From ff2788d4084895a2c4cfa526668dc642e86de6fd Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Fri, 24 May 2024 05:19:27 +0800 Subject: [PATCH] fix(vscode): fix "as"/"instanceof" expressions syntax highlight (#4412) --- extensions/vscode/syntaxes/vue.tmLanguage.json | 6 +++--- test-workspace/language-service/syntax/directives.vue | 6 +++--- test-workspace/language-service/syntax/generic.vue | 1 + test-workspace/language-service/syntax/inline-style.vue | 7 +++++++ .../language-service/syntax/template-expression.vue | 7 +++++++ 5 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 test-workspace/language-service/syntax/generic.vue create mode 100644 test-workspace/language-service/syntax/inline-style.vue create mode 100644 test-workspace/language-service/syntax/template-expression.vue diff --git a/extensions/vscode/syntaxes/vue.tmLanguage.json b/extensions/vscode/syntaxes/vue.tmLanguage.json index 7171625de0..c7ed60e3e2 100644 --- a/extensions/vscode/syntaxes/vue.tmLanguage.json +++ b/extensions/vscode/syntaxes/vue.tmLanguage.json @@ -1071,7 +1071,7 @@ "name": "source.ts.embedded.html.vue", "patterns": [ { - "include": "source.ts" + "include": "source.ts#expression" } ] } @@ -1092,7 +1092,7 @@ "name": "source.ts.embedded.html.vue", "patterns": [ { - "include": "source.ts" + "include": "source.ts#expression" } ] } @@ -1257,7 +1257,7 @@ "name": "source.ts.embedded.html.vue", "patterns": [ { - "include": "source.ts" + "include": "source.ts#expression" } ] } diff --git a/test-workspace/language-service/syntax/directives.vue b/test-workspace/language-service/syntax/directives.vue index 05cbd0b298..d6408879e1 100644 --- a/test-workspace/language-service/syntax/directives.vue +++ b/test-workspace/language-service/syntax/directives.vue @@ -1,6 +1,7 @@