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.
master
Connor Olding 5 years ago
parent 8fbbf955ec
commit 0fdac556a8

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

Loading…
Cancel
Save