Skip to content
Snippets Groups Projects
Commit b96e1aed authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[shell mode] Fix empty token bug

Issue #2506
parent de6fd114
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,10 @@ CodeMirror.defineMode('shell', function() {
startState: function() {return {tokens:[]};},
token: function(stream, state) {
if (stream.eatSpace()) return null;
return tokenize(stream, state);
for (;;) {
var type = tokenize(stream, state);
if (stream.pos > stream.start) return type;
}
}
};
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment