We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ef874 commit a42df1aCopy full SHA for a42df1a
addon/mode/simple.js
@@ -94,7 +94,7 @@
94
95
function tokenFunction(states, config) {
96
return function(stream, state) {
97
- if (state.pending) {
+ if (state.pending && state.pending.length > 0) {
98
var pend = state.pending.shift();
99
if (state.pending.length == 0) state.pending = null;
100
stream.pos += pend.text.length;
0 commit comments