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

Add support for @const

Open catapop84 opened this issue 2 years ago • 1 comments

https://svelte.dev/docs#template-syntax-const

<script>
	export let boxes;
</script>

{#each boxes as box}
	{@const area = box.width * box.height}
	{box.width} * {box.height} = {area}
{/each}

in this example I receive this error: Expected html or debug

I'm using plugin version 0.22.1 with webstorm 2022.1.4

catapop84 avatar Jul 22 '22 13:07 catapop84

duplicate of #268

dominikg avatar Jul 23 '22 12:07 dominikg