Permalink
Browse files

don't let debug mode break parser

  • Loading branch information...
1 parent 8cf92a3 commit 6c0ec441d51396a34803fd0d7c9bb9a601547347 @leafo committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 moonscript/parse.lua
View
4 moonscript/parse.lua
@@ -89,10 +89,10 @@ local function wrap_env(fn)
iprint("* " .. name)
indent = indent + 1
return true
- end) * Cmt(v, function()
+ end) * Cmt(v, function(str, pos, ...)
iprint(name, true)
indent = indent - 1
- return true
+ return true, ...
end) + Cmt("", function()
iprint(name, false)
indent = indent - 1

0 comments on commit 6c0ec44

Please sign in to comment.