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 @@
+
@@ -15,12 +16,12 @@
-
div(@click)
div(@click="{}")
+div(@click="log('hello'); log('world');")
div(#default)
div(#default="args")
div(#)
@@ -35,7 +36,6 @@ div(v-if="true" v-else-if="true" v-else)
div(:foo="':foo=123'")
div(:foo="[{ bar: []}]")
div(.prop="[1, 2]")
-div(style="width: 100%; height: auto;")
@@ -48,6 +48,7 @@ h1#myId(class="text-right") hello
+
@@ -62,5 +63,4 @@ h1#myId(class="text-right") hello
-
diff --git a/test-workspace/language-service/syntax/generic.vue b/test-workspace/language-service/syntax/generic.vue
new file mode 100644
index 0000000000..511520b51a
--- /dev/null
+++ b/test-workspace/language-service/syntax/generic.vue
@@ -0,0 +1 @@
+
diff --git a/test-workspace/language-service/syntax/inline-style.vue b/test-workspace/language-service/syntax/inline-style.vue
new file mode 100644
index 0000000000..a0c68a6399
--- /dev/null
+++ b/test-workspace/language-service/syntax/inline-style.vue
@@ -0,0 +1,7 @@
+
+
+
+
+
+div(style="width: 100%; height: auto;")
+
diff --git a/test-workspace/language-service/syntax/template-expression.vue b/test-workspace/language-service/syntax/template-expression.vue
new file mode 100644
index 0000000000..932ed655fc
--- /dev/null
+++ b/test-workspace/language-service/syntax/template-expression.vue
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+