-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Error "Identifier directly after number" when using "_" as number separator #5407
Comments
Identifier directly after number
when using _
as number separator
Identifier directly after number
when using _
as number separator
I'm hesitant to call it a bug, Svelte is a language/DSL so it's more of an unsupported language feature. I will agree that it's desirable however, and I think it might be an easy solve, so I'm marking it as a good first issue. |
I'm hoping this would just be a matter of updating Acorn. It looks like ours is out of date. |
Yep, Acorn's changelog says they were added in 7.4.0, and we're using 7.3.1. We should still update to 8.x though, and that will likely involve bumping the dependency in code-red. |
You can now do this in 3.26.0 - https://svelte.dev/repl/6612cec5c50b44cbab7f4a64ff930153?version=3.26.0 |
Nice! |
In JS you can use
_
as a number separator.However, I recently noticed that Svelte displays an error
Identifier directly after number
when i use_
in numbershttps://svelte.dev/repl/6612cec5c50b44cbab7f4a64ff930153?version=3.25.1
This feature is definitely useful, so it would be nice to fix this bug.
The text was updated successfully, but these errors were encountered: