vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.76k stars 388 forks source link

Highlight error on html tag name starting with `template` #4769

Open KazariEX opened 2 weeks ago

KazariEX commented 2 weeks ago

Vue - Official extension or vue-tsc version

2.1.2

VSCode version

1.93.0-insider

Vue version

3.5.0-rc.1

TypeScript version

5.5.4

System Info

No response

package.json dependencies

No response

Steps to reproduce

image

What is expected?

N/A

What is actually happening?

N/A

Link to minimal reproduction

No response

Any additional comments?

No response

L33Z22L11 commented 2 weeks ago
<li
    v-for="(entry, index) in tocItem as TocLink[]"
    :key="index"
>
    <a :href="`#${entry?.id}`">{{ entry.text }}</a>
</li>

This will also cause highlight error. When the quotes of v-for props removed, the syntax highlight behaves normally.

KazariEX commented 2 weeks ago

@L33Z22L11 duplicate of #520