mirror of
https://github.com/notwa/lips
synced 2024-05-03 10:03:23 -07: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:
parent
59994cd15d
commit
67ce15feee
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user