Skip to content
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

asserts and declare in classes are not colored as a keyword #797

Closed
AlCalzone opened this issue Dec 27, 2019 · 0 comments
Closed

asserts and declare in classes are not colored as a keyword #797

AlCalzone opened this issue Dec 27, 2019 · 0 comments

Comments

@AlCalzone
Copy link

AlCalzone commented Dec 27, 2019

TS and JS Grammar Extension version: The one included in VSCode 1.41.1

I was asked to split microsoft/TypeScript#35187 and open it here.

Code

function foo(x: any): asserts x is "a" {

}

class Foo {
    declare baz: any;
}

Expected behavior:
asserts is colored like the other keywords.
declare is colored like the other keywords.

Actual behavior:
They are not. (Except declare, which is colored in the playground, but not VSCode).
grafik
grafik

TS Playground: http://www.typescriptlang.org/play/?ts=3.8.0-dev.20191116#code/GYVwdgxgLglg9mABMOcAUAPAXIghmATwEodcBnMgUwCcozENEZ6AiXFxAbwChE-EA9AMQBaMeImSAeojBw8IKHAhwAtgAcANpSiVkcaojYUadFtwC+3bhE3l6AMVRde-ACaVbuanoBGuAC9SQgBuVz4hUTFZeVxFZTUtHT0UQxYPLx9zfkFhXwJEKAALPQB3XAIAGkRSkp8memLcKEQVVVVKMBaEQpLEahgAcyKWshgPAH5LIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant