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 1de8fbb..ada6c12 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -355,6 +355,9 @@ do
source = nil
end
source = source or (to_run.source or Source(to_run, 1, #to_run))
+ if type(source) == 'string' then
+ source = Source:from_string(source)
+ end
if not files.read(source.filename) then
files.spoof(source.filename, to_run)
end