aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index a1eadd8..a83f4ec 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -95,6 +95,9 @@ local compile = setmetatable({
return lua
end,
["Lua"] = function(compile, code)
+ if not code then
+ return LuaCode("LuaCode()")
+ end
if code.type ~= "Text" then
return LuaCode("LuaCode:from(", tostring(code.source):as_lua(), ", ", compile(code), ")")
end