Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-textmate

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-textmate - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc