-
Notifications
You must be signed in to change notification settings - Fork 740
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
TypeScript: Issue with optional chaining inside templated string #1420
Comments
@codebutler I think what's happening here is that the lexer is treating the |
As far as I can tell this is a stage 4 draft, not yet part of the spec: https://tc39.es/proposal-optional-chaining/ |
yes, this is the optional chaining operator. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining @jneen optional chaining is in wide use. it was added to typescript last year: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html |
@codebutler Is your use case using it with the TypeScript lexer? This could be added specifically to that lexer (and then moved into the JavaScript one once it receives broader adoption and/or becomes part of the spec). |
Yes, we are specifically seeing this with Typescript. I didn't realize it was a separate lexer. |
@codebutler No worries. Thanks for filing the bug! Will have a look into it! |
Name of the lexer
TypeScript
Code sample
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: