Fix bug in semantic highlighter.
This commit is contained in:
parent
6cef31c030
commit
ff7a5ab3c1
63 changed files with 70 additions and 47968 deletions
|
|
@ -121,16 +121,16 @@ oop.inherits(Mode, TextMode);
|
|||
this.mergeLines = function(newLines, oldLines) {
|
||||
console.log("New Lines: " + newLines.length);
|
||||
console.log("Old Lines: " + oldLines.length);
|
||||
if(newLines.length === oldLines.length) {
|
||||
var lines = new Array(newLines.length);
|
||||
for(var i in lines)
|
||||
{
|
||||
lines[i] = newLines[i].tokens[0].type === "_error" ? oldLines[i] : newLines[i];
|
||||
var lines = new Array(newLines.length);
|
||||
for(var i in lines)
|
||||
{
|
||||
if(newLines.length === oldLines.length) {
|
||||
lines[i] = newLines[i].tokens[0].type === "_error" ? oldLines[i] : newLines[i];
|
||||
} else {
|
||||
lines[i] = newLines[i].tokens[0].type === "_error" ? undefined : newLines[i];
|
||||
}
|
||||
return lines;
|
||||
} else {
|
||||
return newLines;
|
||||
}
|
||||
return lines;
|
||||
};
|
||||
|
||||
this.createWorker = function(session) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue