diff --git a/packages/language-core/lib/plugins/vue-template-html.ts b/packages/language-core/lib/plugins/vue-template-html.ts index 9808dcf9d2..66a4f13831 100644 --- a/packages/language-core/lib/plugins/vue-template-html.ts +++ b/packages/language-core/lib/plugins/vue-template-html.ts @@ -129,8 +129,16 @@ const plugin: VueLanguagePlugin = ({ modules }) => { node.parseResult.key, node.parseResult.index, ]) { - if (child && !tryUpdateNode(child)) { - return false; + if (child) { + if (!tryUpdateNode(child)) { + return false; + } + if (child.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) { + const content = child.content.trim(); + if (content.startsWith('(') || content.endsWith(')')) { + return false; + } + } } } for (const child of node.children) {