leafo/moonscript — pull request #45 by losinggeneration (2012-10-25 14:11:22+00:00)
Title: Add numeric for line decorators

This adds support for numeric for loop line decorators. I don't think this is quite right yet, so it may need to take a couple more commits (and then an interactive rebase) before it's actually ready to pull. That is, unless you want to just clean it up yourself.

**Issues**
I think what I added to Statement is correct:
```lua
key"for" * (Name * sym"=" * Ct(Exp * sym"," * Exp * (sym"," * Exp)^-1)) / mark"for" +
```
but the part I'm unsure of is in wrap_decorator:
```lua
stm = {"for", name, {bounds[1][2], bounds[2][2]}, {stm}}
```
I don't think the bounds[][2] is the right way to do this.

The other issue is that make test fails with the last line of the syntax.lua and I'm not entirely sure why.