mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
left out DisableDo for foreach loop
This commit is contained in:
parent
abc2599d15
commit
6b56bc711c
@ -435,7 +435,7 @@ local build_grammar = wrap_env(function()
|
||||
For = key"for" * DisableDo * ensure(Name * sym"=" * Ct(Exp * sym"," * Exp * (sym"," * Exp)^-1), PopDo) *
|
||||
key"do"^-1 * Body / mark"for",
|
||||
|
||||
ForEach = key"for" * Ct(NameList) * key"in" * Ct(sym"*" * Exp / mark"unpack" + ExpList) * key"do"^-1 * Body / mark"foreach",
|
||||
ForEach = key"for" * Ct(NameList) * key"in" * DisableDo * ensure(Ct(sym"*" * Exp / mark"unpack" + ExpList), PopDo) * key"do"^-1 * Body / mark"foreach",
|
||||
|
||||
Do = key"do" * Body / mark"do",
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user