From e762bbd037c47f20aa8056d89acbd4210ec7b1e1 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 28 Nov 2018 02:55:01 +0100 Subject: [PATCH] update lips --- Lua/lib/lips/Expression.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lua/lib/lips/Expression.lua b/Lua/lib/lips/Expression.lua index 5634c3a..cd08533 100644 --- a/Lua/lib/lips/Expression.lua +++ b/Lua/lib/lips/Expression.lua @@ -155,7 +155,7 @@ function Expression:lex1(str, tokens) return "bad binary number: "..considered..here end num = tonumber(considered:sub(2), 2) - elseif consider('$[0-9A-Fa-f]+') then + elseif consider('[$][0-9A-Fa-f]+') then num = tonumber(considered:sub(2), 16) elseif consider('0x[0-9A-Fa-f]+') then num = tonumber(considered:sub(3), 16) @@ -226,7 +226,7 @@ end function Expression:lex(str) local tokens = {} - err = self:lex1(str, tokens) + local err = self:lex1(str, tokens) if err then return tokens, err end err = self:lex2(tokens) return tokens, err