Closed gfx closed 1 year ago
Hello, team!
I'm looking into this grammar definition and found as cont satisfies idiom is not highlighted correctly. See the example bellow.
as cont satisfies
TS and JS Grammar Extension version: 0.0.55 / latest
Code
const a = [1, 2, 3] satisfies ReadonlyArray<number>; // Array<number> const b = [1, 2, 3] as ReadonlyArray<number>; // ReadonlyArray<number> const c = [1, 2, 3] as const satisfies ReadonlyArray<number>; // readonly [1, 2, 3]
Screenshot:
I'm expecting the satisfies keyword in as const satisfies to be handled in the same color as as because it's the same part of grammar.
satisfies
as const satisfies
as
Hello, team!
I'm looking into this grammar definition and found
as cont satisfies
idiom is not highlighted correctly. See the example bellow.TS and JS Grammar Extension version: 0.0.55 / latest
Code
Screenshot:
I'm expecting the
satisfies
keyword inas const satisfies
to be handled in the same color asas
because it's the same part of grammar.