rebuild, specs for new string precedence

This commit is contained in:
leaf corcoran 2015-09-26 20:59:33 -07:00
parent f273598e37
commit 36528f1dd0
3 changed files with 6 additions and 1 deletions

View File

@ -171,7 +171,7 @@ local build_grammar = wrap_env(debug_grammar, function(root)
Slice = symx("[") * (SliceValue + Cc(1)) * sym(",") * (SliceValue + Cc("")) * (sym(",") * SliceValue) ^ -1 * sym("]") / mark("slice"),
ColonCall = symx("\\") * (_Name * Invoke) / mark("colon"),
ColonSuffix = symx("\\") * _Name / mark("colon_stub"),
Invoke = FnArgs / mark("call") + SingleString / wrap_func_arg + DoubleString / wrap_func_arg,
Invoke = FnArgs / mark("call") + SingleString / wrap_func_arg + DoubleString / wrap_func_arg + LuaString / wrap_func_arg,
TableValue = KeyValue + Ct(Exp),
TableLit = sym("{") * Ct(TableValueList ^ -1 * sym(",") ^ -1 * (SpaceBreak * TableLitLine * (sym(",") ^ -1 * SpaceBreak * TableLitLine) ^ 0 * sym(",") ^ -1) ^ -1) * White * sym("}") / mark("table"),
TableValueList = TableValue * (sym(",") * TableValue) ^ 0,

View File

@ -66,6 +66,9 @@ something 'else', "ya"
something'else'
something"else"
something[[hey]] * 2
something[======[hey]======] * 2
here(we)"go"[12123]
-- this runs

View File

@ -53,6 +53,8 @@ end)
something('else', "ya")
something('else')
something("else")
something([[hey]] * 2)
something([======[hey]======] * 2)
_ = here(we)("go")[12123]
local something = {
test = 12323,