vscode-textmate
Advanced tools
Comparing version 3.2.0 to 3.3.0
{ | ||
"name": "vscode-textmate", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "VSCode TextMate grammar helpers", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -34,2 +34,8 @@ /** | ||
} | ||
/** | ||
* A map from scope name to a token type. | ||
*/ | ||
export interface ITokenTypeMap { | ||
[scopeName: string]: StandardTokenType; | ||
} | ||
export declare const enum StandardTokenType { | ||
@@ -41,2 +47,6 @@ Other = 0, | ||
} | ||
export interface IGrammarConfiguration { | ||
embeddedLanguages?: IEmbeddedLanguagesMap; | ||
tokenTypes?: ITokenTypeMap; | ||
} | ||
/** | ||
@@ -64,3 +74,8 @@ * The registry that will hold all grammars. | ||
* Load the grammar for `scopeName` and all referenced included grammars asynchronously. | ||
* Please do not use language id 0. | ||
*/ | ||
loadGrammarWithConfiguration(initialScopeName: string, initialLanguage: number, configuration: IGrammarConfiguration, callback: (err: any, grammar: IGrammar) => void): void; | ||
/** | ||
* Load the grammar for `scopeName` and all referenced included grammars asynchronously. | ||
*/ | ||
loadGrammar(initialScopeName: string, callback: (err: any, grammar: IGrammar) => void): void; | ||
@@ -75,3 +90,3 @@ private _loadGrammar(initialScopeName, callback); | ||
*/ | ||
grammarForScopeName(scopeName: string, initialLanguage?: number, embeddedLanguages?: IEmbeddedLanguagesMap): IGrammar; | ||
grammarForScopeName(scopeName: string, initialLanguage?: number, embeddedLanguages?: IEmbeddedLanguagesMap, tokenTypes?: ITokenTypeMap): IGrammar; | ||
} | ||
@@ -78,0 +93,0 @@ /** |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3251
131502