Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error when using "break $" #559

Closed
j3rem1e opened this issue Sep 23, 2020 · 0 comments · Fixed by #562
Closed

Syntax Error when using "break $" #559

j3rem1e opened this issue Sep 23, 2020 · 0 comments · Fixed by #562
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@j3rem1e
Copy link
Contributor

j3rem1e commented Sep 23, 2020

Describe the bug

In svelte, the syntax break $ is used to escape a reactive block (sveltejs/svelte#2828).
However, in VSCode, using this syntax shows an error "Expression expected // ; Expected".

"break $" is transformed by svelte2tsx to :
"break __sveltets_store_get();" which is not a valid syntax

To Reproduce

<script>
  $: { break $; }
</script>

Expected behavior

The previous code should be valid in vscode.

System (please complete the following information):

  • OS: Windows 10
  • IDE: VSCode
  • Plugin/Package:
@j3rem1e j3rem1e added the bug Something isn't working label Sep 23, 2020
j3rem1e added a commit to j3rem1e/language-tools that referenced this issue Sep 23, 2020
j3rem1e added a commit to j3rem1e/language-tools that referenced this issue Sep 23, 2020
j3rem1e added a commit to j3rem1e/language-tools that referenced this issue Sep 23, 2020
dummdidumm pushed a commit that referenced this issue Sep 23, 2020
@dummdidumm dummdidumm added the Fixed Fixed in master branch. Pending production release. label Sep 23, 2020
@dummdidumm dummdidumm reopened this Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants