vuejs / language-tools

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

Syntax Highlighting Error in SVG #4992

Open grassfish1122 opened 2 weeks ago

grassfish1122 commented 2 weeks ago

Vue - Official extension or vue-tsc version

v2.1.10

VSCode version

1.95.1

Vue version

any

TypeScript version

No TypeScript used

System Info

No response

package.json dependencies

No response

Steps to reproduce

When I copy-paste SVG code from an MDN examplesvg-foreignObject, I notice that Vue syntax highlighting is incorrect. image

However, when I switch to the Vetur extension or use WebStorm, the highlighting appears correctly. This issue only occurs with Vue Official. image

↓ Vetur works correctly image

What is expected?

Correct syntax highlighting

What is actually happening?

Incorrect syntax highlighting

Link to minimal reproduction

No response

Any additional comments?

No response