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
export let
in plain js script tags breaks syntax highlighting
#320
Comments
Sorry. I can't reproduce this. Maybe this is an upstream issue, the syntax highlight within script tag was defined to be like "hey IDE, handle js for me". What is your VSCode version? |
Hmm, interesting. I wonder what else I could look for. Here is my VS Code version info:
|
Possible hint: when I use Is there a way I can discover what parser/ecmascript version Svelte is handing it off to? |
Can you try to disable any extension except svelte for vscode and see if it persist? Or try the same code in js file? |
That was it! The `Babel Javascript` plugin (0.0.29) was the cause. Thanks.
…On Sun, Jul 19, 2020 at 12:47 AM Lyu, Wei-Da ***@***.***> wrote:
Can you try to disable any extension except svelte for vscode and see if
it persist? It might also be any other extension that alters the syntax
highlight.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#320 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAABAJCOUP4DSNSFKXPT5DR4KJHNANCNFSM4PANJVLQ>
.
|
Describe the bug
When adding an
export let
in plain javascript<script>
tag, it breaks the rest of the syntax highlighting:To Reproduce
Sample:
Expected behavior
The closing
</script>
tag should be recognized as the end of the javascript section.Screenshots
System (please complete the following information):
The text was updated successfully, but these errors were encountered: