Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

readonly TypeScript keyword syntax highlighting broken #743

Closed
TomasHubelbauer opened this issue Apr 23, 2019 · 1 comment
Closed

readonly TypeScript keyword syntax highlighting broken #743

TomasHubelbauer opened this issue Apr 23, 2019 · 1 comment

Comments

@TomasHubelbauer
Copy link

  • VSCode Version: 1.33.1
  • OS Version: Windows 10

TypeScript syntax highlighting around the readonly keyword when used in conjunction with an inline type declaration seems to be broken. I am not sure if the syntax highlighter for TS is a part of VS Code or not, so hopefully this is the right place to report this.

type Test = {
    okay: string;
    broken1: readonly { a: string; b: number; }[];
    broken2: readonly { a: number; b: string; }[];
};

image

Coincidentally (?) the same problem is shown in the GitHub issue syntax highlighter.

I haven't tried with extensions disabled or with Insiders due to lack of time, hopefully my issue is still useful despite that.

@TomasHubelbauer TomasHubelbauer changed the title readonly TypeScript keyword syntax highlighting boken readonly TypeScript keyword syntax highlighting broken Apr 23, 2019
@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 23, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Apr 23, 2019

I confirmed this using the latest published grammar

@mjbvz mjbvz removed their assignment Apr 23, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants