vscode-twig-language icon indicating copy to clipboard operation
vscode-twig-language copied to clipboard

Conditional selected attribute in Twig causes closing option tag to be marked as an error

Open steev71 opened this issue 1 year ago • 1 comments

Hi junstyle!

In the option list, if I conditionally use the selected attribute, the closing option tag is marked as an error. The template code works correctly and renders as expected in the browser, but the plugin shows a syntax error.

image

steev71 avatar Jul 07 '24 06:07 steev71

I have the same problem, dont know if it helps, but here's another example where you can see that it only happens on some lines not all.

image

hugoup avatar Dec 18 '24 07:12 hugoup