From b32634faf8eb0fe1448ca44ddf9b3a6bfaf20b68 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 10 Jul 2018 17:36:52 -0700 Subject: Fixed dumb bug that broke the tests. --- nomsu_compiler.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_compiler.moon') 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 ", ") -- cgit v1.2.3