Clean up the last token when receiving TOK_END

This commit is contained in:
ridiculousfish 2014-12-23 11:22:54 -08:00
parent 39fe9fcfcd
commit d458a8a03d

View File

@ -640,6 +640,7 @@ void tok_next(tokenizer_t *tok)
tok->buff++; tok->buff++;
} }
} }
tok->last_token.clear();
break; break;
case L'&': case L'&':
tok->last_type = TOK_BACKGROUND; tok->last_type = TOK_BACKGROUND;