From 0fdac556a813487ca5920b121c7f31972f065f12 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 28 Apr 2018 21:36:50 +0200 Subject: [PATCH] fix specials like %lo and %hi when I rewrote Muncher into TokenIter, I removed the return value of self:advance(), and forgot to handle this case that relied on it. --- lips/TokenIter.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lips/TokenIter.lua b/lips/TokenIter.lua index a63032f..70dca0e 100644 --- a/lips/TokenIter.lua +++ b/lips/TokenIter.lua @@ -184,7 +184,8 @@ function TokenIter:special() local args = {} while true do - local arg = self:advance() + self:advance() + local arg = self.t if not self.arg_types[arg.tt] then self:error('invalid argument type', arg.tt) else