From 67ce15feee8bb8d0270a42d6650c8fff0f557904 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 20 Apr 2016 01:12:57 -0700 Subject: [PATCH] fail to lex 0X hex prefix in favor of lowercase 0x you are a terrible person if you do this --- lips/Lexer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lips/Lexer.lua b/lips/Lexer.lua index eb9a41b..842b394 100644 --- a/lips/Lexer.lua +++ b/lips/Lexer.lua @@ -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()