Minor syntax highlighter improvement.
This commit is contained in:
parent
0c79c5dded
commit
c1f7c51137
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ oop.inherits(Mode, TextMode);
|
|||
worker.on("highlight", function(tokens) {
|
||||
if(that.$deltas.length > 0) return;
|
||||
that.$tokenizer.tokens = tokens.data;
|
||||
session.bgTokenizer.lines = [];
|
||||
session.bgTokenizer.states = [];
|
||||
session.bgTokenizer.fireUpdateEvent(0, session.getLength() - 1);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue