...
 
Commits (2)
......@@ -140,12 +140,12 @@ local grammar = {
"local" + "nil" + "not" + "or" + "repeat" + "return" +
"then" + "true" + "until" + "while";
NameStart = R"az" + R"AZ" + P"_";
NameStart = R("az", "AZ") + P"_";
NameChar = V"NameStart" + R"09";
Reserved = V"Keywords" * -V"NameChar";
Name = -V"Reserved" * C(V"NameStart" * V"NameChar"^0) * -V"NameChar";
HexDigit = R"af" + R"AF" + R"09";
HexDigit = R("af", "AF", "09");
HexInt = P"0" * S"xX" * V"HexDigit"^1;
DecInt = R"09"^1;
......
{
1, -2, 3, -0xff, -0, true, false, 'hi', "hello",
0xAbCdEf, 0XaBcDeF, -0xaAbBcCdDeEfF,
{'a','b','c'}, field1 = 55, ["field2"] = 44.0e-3, --[false] = false,
decesc1 = "\33,\0339\0\255", decesc2 = '\0\00\000\1\2\3\9\09\009\0,\5.',
["\a\b\n\\'\""] = '"\n\t\r\\\r\n',
......