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

fail to lex 0X hex prefix in favor of lowercase 0x

you are a terrible person if you do this
This commit is contained in:
Connor Olding 2016-04-20 01:12:57 -07:00
parent 59994cd15d
commit 67ce15feee

View file

@ -143,7 +143,7 @@ function Lexer:read_number()
self:nextc()
return self:read_hex()
elseif self.chr:find('%d') then
if self.chr2 == 'x' or self.chr2 == 'X' then
if self.chr2 == 'x' then
self:nextc()
self:nextc()
return self:read_hex()