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 for `as const satisfies Foo` doesn't highlight the `satisfies` keyword as a keyword #961

Closed segevfiner closed 1 year ago

segevfiner commented 1 year ago

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

image

Steps to Reproduce:

  1. Try the TS file:
import { JSONSchema, FromSchema } from "json-schema-to-ts";

const Foo = {
  type: "object",
  properties: {
    foo: {
      type: "string",
    },
  },
} as const;
type FooType = FromSchema<typeof Foo>;

const Foo2 = {
  type: "object",
  properties: {
    foo: {
      type: "string",
    },
  },
} satisfies JSONSchema;
type Foo2Type = FromSchema<typeof Foo2>;

const Foo3 = {
  type: "object",
  properties: {
    foo: {
      type: "string",
    },
  },
} as const satisfies JSONSchema;
type Foo3Type = FromSchema<typeof Foo2>;
sheetalkamat commented 1 year ago

Duplicate of #956