1
0
Fork 0
mirror of https://github.com/notwa/lips synced 2024-11-14 17:59:02 -08:00

fix octal lexing

This commit is contained in:
Connor Olding 2015-12-24 23:52:30 -08:00
parent fbcd985e68
commit 67b36f2b07

View file

@ -585,7 +585,7 @@ function Lexer:read_number()
return self:read_hex()
elseif self.chr == '0' and self.chr2:find('%d') then
self:nextc()
return self:read_octal_number()
return self:read_octal()
else
return self:read_decimal()
end