aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_compiler.lua2
-rw-r--r--nomsu_compiler.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 3c1102f..412ffc6 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -261,7 +261,7 @@ do
add_lua_string_bits = function(self, val_or_stmt, code)
local cls_str = val_or_stmt == "value" and "LuaCode.Value(" or "LuaCode("
if code.type ~= "Text" then
- return LuaCode(code.source, cls_str, repr(tostring(code.source)), ", ", self:compile(code), ")")
+ return LuaCode.Value(code.source, cls_str, repr(tostring(code.source)), ", ", self:compile(code), ")")
end
local add_bit_lua
add_bit_lua = function(lua, bit_lua)
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 ", ")