laosb / SvelteNova

Svelte language support for Panic's Nova Editor.
https://extensions.panic.com/extensions/sb.lao/sb.lao.svelte-nova/
MIT License
19 stars 3 forks source link

Quoting on:click events #8

Closed ppedrazzi closed 3 years ago

ppedrazzi commented 3 years ago

Not an issue, but wondering about double quoting as the approach for things like on:click or class:foo? I've used svelte without it and it seems fine without the quotes, but maybe I'm off here.

Challenge with quoting is you lose all syntax formatting.

See example.

CleanShot 2021-05-29 at 08 29 34@2x
laosb commented 3 years ago

In Svelte docs they do it without quotes. That looks more accurate to me and is how I do this. If the syntax highlights looks wrong, I'm sorry but I'm not capable enough to fix. I'm closing this since this is not a bug report. Please don't hesitate to report as a bug if it is.