-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Bracket pair colorizing fails in nested template strings #190564
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
Bracket pair colorizing fails in nested template strings #190564
Comments
The BUG: |
I'm quite sure this is a (probably known) issue of the TypeScript/JavaScript grammar. |
This is caused by "tokenTypes": {
"meta.template.expression": "other",
"meta.template.expression string": "string",
"meta.template.expression comment": "comment"
} vscode/extensions/typescript-basics/package.json Lines 77 to 80 in 920fbe5
174db5e was added as a bad fix for "meta.template.expression string": "string",
"meta.template.expression comment": "comment" and #134662 was caused by bc0e917, as a bad fix for
"meta.template.expression": "other" version 1.59.1 was working correctly PR #245786 |
Type: Bug
The following line of code has a template placeholder
${getWorld((5 - 1) + "123"[2])}
two times. On the top level of the template string and inside another template string inside a placeholder.The one in the top level gets the bracket pair colorized and the one deeper doesn't.
VS Code version: Code 1.81.1 (6c3e3db, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22621
The text was updated successfully, but these errors were encountered: