mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Add back some default properties of TokenizedBuffer
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user