Add back some default properties of TokenizedBuffer

This commit is contained in:
Max Brunsfeld
2017-09-24 09:16:30 -07:00
parent 6df3c27da0
commit 7cd6e266b2

View File

@@ -32,6 +32,7 @@ class TokenizedBuffer {
this.regexesByPattern = {}
this.alive = true
this.visible = false
this.id = params.id != null ? params.id : nextId++
this.buffer = params.buffer
this.tabLength = params.tabLength
@@ -736,6 +737,8 @@ class TokenizedBuffer {
}
}
module.exports.prototype.chunkSize = 50
function selectorMatchesAnyScope (selector, scopes) {
const targetClasses = selector.replace(/^\./, '').split('.')
return scopes.some((scope) => {