vscode-textmate
Advanced tools
Comparing version 1.2.0 to 2.0.0
{ | ||
"name": "vscode-textmate", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "VSCode TextMate grammar helpers", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -18,5 +18,2 @@ /*--------------------------------------------------------- | ||
public static readGrammarInfo(path:string, callback:(err:any, grammarInfo:IGrammarInfo)=>void, useExperimentalParser?:boolean): void; | ||
public static readGrammarInfoSync(path:string, useExperimentalParser?:boolean): IGrammarInfo; | ||
constructor(locator?:IGrammarLocator, useExperimentalParser?:boolean); | ||
@@ -40,9 +37,2 @@ | ||
export interface IGrammarInfo { | ||
fileTypes: string[]; | ||
name: string; | ||
scopeName: string; | ||
firstLineMatch: string; | ||
} | ||
/** | ||
@@ -55,14 +45,14 @@ * A grammar | ||
*/ | ||
tokenizeLine(lineText: string, prevState: StackElement[]): ITokenizeLineResult; | ||
tokenizeLine(lineText: string, prevState: StackElement): ITokenizeLineResult; | ||
} | ||
export interface ITokenizeLineResult { | ||
tokens: IToken[]; | ||
tokens: ITMToken[]; | ||
/** | ||
* The `prevState` to be passed on to the next line tokenization. | ||
*/ | ||
ruleStack: StackElement[]; | ||
ruleStack: StackElement; | ||
} | ||
export interface IToken { | ||
export interface ITMToken { | ||
startIndex: number; | ||
@@ -77,10 +67,3 @@ endIndex: number; | ||
export interface StackElement { | ||
ruleId: number; | ||
enterPos: number; | ||
endRule: string; | ||
whileRule: string; | ||
scopeName: string; | ||
contentName: string; | ||
clone(): StackElement; | ||
_stackElementBrand: void; | ||
} |
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
83314
2134