svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Double quotes in dynamic property shows syntax error

Open rster2002 opened this issue 3 years ago • 3 comments

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.

rster2002 avatar Aug 23 '21 19:08 rster2002

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

tmarsik42 avatar Jul 21 '22 08:07 tmarsik42

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 avatar Jul 22 '22 21:07 rster2002

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

image

rster2002 avatar Jul 22 '22 22:07 rster2002

Duplicate of #194

tomblachut avatar Jul 04 '23 17:07 tomblachut