mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
{ a : b } doesn't do self-assign #98
This commit is contained in:
parent
a4fbc976d9
commit
1a436b79b2
@ -575,7 +575,7 @@ local build_grammar = wrap_env(function()
|
||||
op"*" + op"^" +
|
||||
Ct(NameList) * (sym"=" * Ct(ExpListLow))^-1) / mark"export",
|
||||
|
||||
KeyValue = (sym":" * Name) / self_assign + Ct((KeyName + sym"[" * Exp * sym"]" + DoubleString + SingleString) * symx":" * (Exp + TableBlock)),
|
||||
KeyValue = (sym":" * -SomeSpace * Name) / self_assign + Ct((KeyName + sym"[" * Exp * sym"]" + DoubleString + SingleString) * symx":" * (Exp + TableBlock)),
|
||||
KeyValueList = KeyValue * (sym"," * KeyValue)^0,
|
||||
KeyValueLine = CheckIndent * KeyValueList * sym","^-1,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user