shikijs / textmate-grammars-themes

Collection of TextMate grammars and themes in JSON
https://textmate-grammars-themes.netlify.app/
MIT License
116 stars 57 forks source link

Components parameters in Vue template tag #46

Open elchininet opened 7 months ago

elchininet commented 7 months ago

At the moment, using Vue language it seems to be using the HTML grammar for the template, so it also takes the HTML deprecated attributes. This is OK as far as one is working with native HTML elements, but if one is using an imported Vue component that admits a property with the same name as the deprecated HTML attributes, the next occurs:

image

Currently what I am doing is patching the shiki dist/langs/html.mjs file renaming the deprecated HTML attributes to something else, but then if I use a native HTML element with one of those attributes it will not mark them as deprecated.

Is there any way of overcome this?

Thanks is advance