Open grant-dennison opened 2 years ago
syntax highlight semicolon lambda
Version: 1.61.2 (user setup) Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643 Date: 2021-10-19T14:57:20.575Z Electron: 13.5.1 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19043
Playground link with relevant code
declare function doFoo(arg: any): void type A = number doFoo(() => { type B = number const b = 5 }) const a = 1
type and const get colored oddly inside the lambda.
type
const
Notice that the colors are different in and out of the lambda.
Scope/token debugging:
The syntax highlighting should look like this:
Notice that colors are the same in and out of the lambda. I added a semicolon in this case to the type statement to workaround the issue.
Ah, didn't know about this repository. Thanks for the switch! Looks like this might be a duplicate of #873. Should I copy info over from this issue to that one before closing?
Bug Report
🔎 Search Terms
syntax highlight semicolon lambda
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
type
andconst
get colored oddly inside the lambda.Notice that the colors are different in and out of the lambda.
Scope/token debugging:
🙂 Expected behavior
The syntax highlighting should look like this:
Notice that colors are the same in and out of the lambda. I added a semicolon in this case to the type statement to workaround the issue.
Scope/token debugging: