From c1f53271143aef88bfcc4ab684f131782a5f5d65 Mon Sep 17 00:00:00 2001 From: Eloff Date: Sun, 5 Jan 2014 15:25:09 -0500 Subject: [PATCH] Add support for LL and ULL number suffixes (LuaJIT) --- moonscript/parse.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonscript/parse.lua b/moonscript/parse.lua index 499ae1b..eb4bffc 100644 --- a/moonscript/parse.lua +++ b/moonscript/parse.lua @@ -51,7 +51,8 @@ local AlphaNum = R("az", "AZ", "09", "__") local _Name = C(R("az", "AZ", "__") * AlphaNum^0) local Name = Space * _Name -local Num = P"0x" * R("09", "af", "AF")^1 + +local Num = P"0x" * R("09", "af", "AF")^1 * (S"uU"^-1 * S"lL"^2)^-1 + + R"09"^1 * (S"uU"^-1 * S"lL"^2) + ( R"09"^1 * (P"." * R"09"^1)^-1 + P"." * R"09"^1