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:
parent
8fbbf955ec
commit
0fdac556a8
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue