Interface IMonarchLanguage
Expand description
interface IMonarchLanguage {
brackets?: IMonarchLanguageBracket[];
defaultToken?: string;
ignoreCase?: boolean;
includeLF?: boolean;
start?: string;
tokenizer: { [name: string]: IMonarchLanguageRule[] };
tokenPostfix?: string;
unicode?: boolean;
[key: string]: any;
}Properties§
§§§§§§§§
brackets?: IMonarchLanguageBracket[]for example [['{','}','delimiter.curly']]
default Token?: stringif no match in the tokenizer assign this token class (default 'source')
ignore Case?: booleanis the language case insensitive?
include LF?: booleaninclude line feeds (in the form of a \n character) at the end of lines Defaults to false
start?: stringstart symbol in the tokenizer (by default the first entry is used)
tokenizer: { ... }map from string to ILanguageRule[]
token Postfix?: stringattach this to every token class (by default '.' + name)
unicode?: booleanis the language unicode-aware? (i.e., /\u{1D306}/)
A Monarch language definition