ventojs / vscode-vento

Vento for Visual Studio Code
MIT License
11 stars 4 forks source link

Unxpected highlighting for if statement within HTML tag #8

Open wjharney opened 3 months ago

wjharney commented 3 months ago

For <a {{ if foo == bar }}attribute{{ /if }}>:

Also notable, but less distracting, the colors used within an HTML tag do not match the colors used for regular content, particularly the content within the if block (attribute).

screenshot of the described issue
oscarotero commented 3 months ago

Yes, I'm aware of this, and it depends on the position of the js code in the HTML:

image

And as an extra annoying case, if it's inside an attribute and it has quotes, the highlighting interprets these quotes as the end of the attribute:

image

Unfortunately, I'm not an expert creating VSCode plugins. If anyone want to help with this, I'd appreciate.