Add support for LL and ULL number suffixes (LuaJIT)

This commit is contained in:
Eloff 2014-01-05 15:25:09 -05:00
parent ea391e14db
commit c1f5327114

View File

@ -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