diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-10 17:36:52 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-10 17:37:00 -0700 |
| commit | b32634faf8eb0fe1448ca44ddf9b3a6bfaf20b68 (patch) | |
| tree | c0b5b8febd16df0257186e7ee744e4efef9a1ce3 /nomsu_compiler.moon | |
| parent | 194146d36591e6c3a964667ead9109bbc6e00524 (diff) | |
Fixed dumb bug that broke the tests.
Diffstat (limited to 'nomsu_compiler.moon')
| -rw-r--r-- | nomsu_compiler.moon | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 5f766a8..e75fefa 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -159,7 +159,7 @@ with NomsuCompiler add_lua_string_bits = (val_or_stmt, code)=> cls_str = val_or_stmt == "value" and "LuaCode.Value(" or "LuaCode(" if code.type != "Text" - return LuaCode(code.source, cls_str, repr(tostring(code.source)), ", ", @compile(code), ")") + return LuaCode.Value(code.source, cls_str, repr(tostring(code.source)), ", ", @compile(code), ")") add_bit_lua = (lua, bit_lua)-> bit_leading_len = #(tostring(bit_lua)\match("^[^\n]*")) lua\append(lua.trailing_line_len + bit_leading_len > MAX_LINE and ",\n " or ", ") |
