Assume no state change from previously known state in bgTokenizer (#256)
This commit is contained in:
parent
53fb2a3562
commit
1319c478bb
1 changed files with 3 additions and 0 deletions
|
|
@ -144,6 +144,9 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
||||||
} else if (firstRow == 0) {
|
} else if (firstRow == 0) {
|
||||||
state = "start";
|
state = "start";
|
||||||
doCache = true;
|
doCache = true;
|
||||||
|
} else if (this.lines.length > 0) {
|
||||||
|
// Guess that we haven't changed state.
|
||||||
|
state = this.lines[this.lines.length-1].state;
|
||||||
}
|
}
|
||||||
|
|
||||||
var lines = this.doc.getLines(firstRow, lastRow);
|
var lines = this.doc.getLines(firstRow, lastRow);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue