microsoft / TypeScript-TmLanguage

TextMate grammar files for TypeScript for VS Code, Sublime Text, and Atom.
MIT License
413 stars 126 forks source link

Syntax highlighting missing one string #927

Closed Arlen22 closed 1 year ago

Arlen22 commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.70.2 (user setup) OS Version: Windows 10.0.19044.1889 according to cmd.exe

Version: 1.70.2 (user setup) Commit: e4503b30fc78200f846c62cf8091b76ff5547662 Date: 2022-08-16T05:35:13.448Z Electron: 18.3.5 Chromium: 100.0.4896.160 Node.js: 16.13.2 V8: 10.0.139.17-electron.0 OS: Windows_NT x64 10.0.19044

let t = (
    { test1: (ok("t"), ok("t")) }
)

The only the first string is colored as a string for each property.

image

A solution is to surround the object with parenthesis

image

Single line is also fine:

image

tsc compiles fine, so this appears to be a bug.