From d458a8a03def7df64a1b4cd38216629f203389cb Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 23 Dec 2014 11:22:54 -0800 Subject: [PATCH] Clean up the last token when receiving TOK_END --- tokenizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tokenizer.cpp b/tokenizer.cpp index 16929a149..c555b0d6d 100644 --- a/tokenizer.cpp +++ b/tokenizer.cpp @@ -640,6 +640,7 @@ void tok_next(tokenizer_t *tok) tok->buff++; } } + tok->last_token.clear(); break; case L'&': tok->last_type = TOK_BACKGROUND;