diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-13 15:29:16 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-13 15:29:20 -0700 |
| commit | 25e06d1fce660e7c8144425b440f7b1c698e2fb7 (patch) | |
| tree | 3636abb32881a757ba907c2a8cf218090e6d28bd /lua_obj.moon | |
| parent | 8f6f941d897a5678ab09bb9b21e0274743857587 (diff) | |
Getting closer.
Diffstat (limited to 'lua_obj.moon')
| -rw-r--r-- | lua_obj.moon | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua_obj.moon b/lua_obj.moon index 1979c94..21017d7 100644 --- a/lua_obj.moon +++ b/lua_obj.moon @@ -73,8 +73,10 @@ class Lua __tostring: => buff = {} - for b in *@bits + for i,b in ipairs @bits buff[#buff+1] = tostring(b) + if i < #@bits and type(b) != 'string' and b.is_statement + buff[#buff+1] = "\n" ret = concat(buff, "") assert(not ret\match(".*table: 0x.*")) return ret |
