aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-10 17:36:52 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-10 17:37:00 -0700
commitb32634faf8eb0fe1448ca44ddf9b3a6bfaf20b68 (patch)
treec0b5b8febd16df0257186e7ee744e4efef9a1ce3 /nomsu_compiler.lua
parent194146d36591e6c3a964667ead9109bbc6e00524 (diff)
Fixed dumb bug that broke the tests.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua2
1 files changed, 1 insertions, 1 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)