1
0
Fork 0
mirror of https://github.com/notwa/lips synced 2024-11-14 09:29:03 -08:00

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

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