tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Double quotes in dynamic property shows syntax error #247

Closed rster2002 closed 1 year ago

rster2002 commented 3 years ago

Just installed WebStorm and the plugin so this might be a configuration issue. I'm also not really sure if this is the right place to create this issue so let me know if this is not the place to create this issue.

image I expect to use double quotes within {} as this is syntax valid in svelte as you can see here.

Let me know you need anything else.

tmarsik42 commented 2 years ago

This is a bit old but I don't think it's a good idea. It might compile without error but it is so wrong to nest quotes of the same type. Even repl you posted is screaming at you (in colors) that it is wrong. Highlighters don't know where the parameter starts and ends.

Snímek obrazovky 2022-07-21 v 10 07 25
rster2002 commented 2 years ago

I've since stopped doing this because it's not supported in this plugin, but from what I can remember the official svelte plugin for VS code does allow for this, but I would have to check.

rster2002 commented 2 years ago

After checking, it seems the official svelte plugin for VS code does allow this:

image
tomblachut commented 1 year ago

Duplicate of #194