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.
Functions
Section titled “Functions”getSyntax()
Section titled “getSyntax()”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.
Parameters
Section titled “Parameters”configuration
Section titled “configuration”– The theme configuration object.
variant
Section titled “variant”string
– The theme variant (“dark” or “light”).
Returns
Section titled “Returns”({ 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.