Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
// I don't really like this interface, so we wrap it and expose a new one
let grammarRegistry = new GrammarRegistry();
this.colorCache = new Map();
this.rawLines = [ `` ];
this.tokenizedLines = [ ];
this.grammar = {
active: null,
registry: new Map(),
load: (name, data) => {
if (isString(data) || data instanceof Buffer)
data = JSON.parse(data.toString());
constructor ({config} = {}) {
this.config = config
this.subscriptions = new CompositeDisposable()
this.textmateRegistry = new FirstMate.GrammarRegistry({maxTokensPerLine: 100, maxLineLength: 1000})
this.clear()
}