aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon4
1 files changed, 3 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index edf0c47..b9ff559 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -1185,7 +1185,9 @@ OPTIONS
print_file\write(formatted, "\n")
print_file\flush!
elseif input == STDIN
- nomsu\run(io.input!\read("*a"), compile_fn)
+ file = io.input!\read("*a")
+ FILE_CACHE.stdin = file
+ nomsu\run(Nomsu(Source('stdin',1,#file), file), compile_fn)
else
nomsu\run_file(input, compile_fn)