diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/macro.moon | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inputs/macro.moon b/spec/inputs/macro.moon index 07ac7b3..9083449 100644 --- a/spec/inputs/macro.moon +++ b/spec/inputs/macro.moon | |||
| @@ -77,7 +77,7 @@ macro expr curry = (...)-> | |||
| 77 | len = #args | 77 | len = #args |
| 78 | body = args[len] | 78 | body = args[len] |
| 79 | def = table.concat ["(#{args[i]})->" for i = 1, len - 1] | 79 | def = table.concat ["(#{args[i]})->" for i = 1, len - 1] |
| 80 | "#{def}\n#{body\gsub "^do\n",""}" | 80 | "#{def}\n#{body\gsub "^do%s*\n",""}" |
| 81 | 81 | ||
| 82 | f = $curry x,y,z,do | 82 | f = $curry x,y,z,do |
| 83 | print x,y,z | 83 | print x,y,z |
