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.
This commit is contained in:
Connor Olding 2018-04-28 21:36:50 +02:00
parent 8fbbf955ec
commit 0fdac556a8
1 changed files with 2 additions and 1 deletions

View File

@ -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