Skip to content

syntax.index

Syntax token array entrypoint.

Selects between the default and italic keyword syntax functions based on the italicKeywords configuration setting. Derives the palette prefix from variant and contrast and passes it through to ensure all neutral color lookups resolve correctly.

getSyntax(configuration, variant): ({ name: string; scope: string; settings: { fontStyle?: undefined; foreground: any; }; } | { name: string; scope: string; settings: { fontStyle: string; foreground: any; }; } | { name: string; scope: string; settings: { fontStyle: string; foreground?: undefined; }; })[]

Defined in: syntax/index.ts:27

Resolves the full TextMate syntax highlighting array based on user configuration and theme variant.

Configuration

– The theme configuration object.

string

– The theme variant (“dark” or “light”).

({ name: string; scope: string; settings: { fontStyle?: undefined; foreground: any; }; } | { name: string; scope: string; settings: { fontStyle: string; foreground: any; }; } | { name: string; scope: string; settings: { fontStyle: string; foreground?: undefined; }; })[]

An array of TextMate token color rules.