tomblachut / svelte-intellij

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

Support the {@const} tag #268

Closed TheOnlyTails closed 1 year ago

TheOnlyTails commented 2 years ago

The {@const} tag, which allows declaration of constants inside markup, is soon to be merged into the main Svelte repo: https://github.com/sveltejs/svelte/pull/6413

Some opportunities this can have:

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

The language tools PR has already been merged: https://github.com/sveltejs/language-tools/pull/1319 The RFC describing the syntax: https://github.com/sveltejs/rfcs/blob/master/text/0007-markup-constants.md

Update: {@const} has now been officially released in Svelte 3.46.

risalfajar commented 2 years ago

will this be supported soon?

cristianvogel commented 2 years ago

The plugin really needs {@const} support to be complete. https://svelte.dev/docs#template-syntax-const

risalfajar commented 2 years ago

@tomblachut is there any plan for this? It has been 9 months :(

risalfajar commented 1 year ago

Update: Issue tracking has been moved from GitHub to YouTrack

see https://youtrack.jetbrains.com/issue/WEB-55903/Svelte-const-tag-causes-syntax-errors