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 4c72629 commit 2683f24Copy full SHA for 2683f24
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