aboutsummaryrefslogtreecommitdiff
path: root/nomsu_environment.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 14:36:15 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 14:37:22 -0800
commit7d2b7199d87930096b7fd799709fe0105d51eccb (patch)
treef33de61cb44357497758bb08ec6993753d8baa43 /nomsu_environment.moon
parentba96cdfa07cea15ada62f8f89b2563de1286a0de (diff)
Lots of cleanups, including expanded use of (... compiles to "text
literal") shorthand, deprecating Lua value, and more use of Lua "..." with text interpolations.
Diffstat (limited to 'nomsu_environment.moon')
-rw-r--r--nomsu_environment.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon
index 6f38c70..4802ce7 100644
--- a/nomsu_environment.moon
+++ b/nomsu_environment.moon
@@ -75,7 +75,7 @@ nomsu_environment = Importer{
if num_errs > 0
err_strings = [pretty_error{
title:"Parse error"
- error:e.error, hint:e.hint, source:e\get_source_code!
+ error:e.error, hint:e.hint, source:e\get_source_file!
start:e.source.start, stop:e.source.stop, filename:e.source.filename
} for i, e in ipairs(errs) when i <= 3]
if num_errs > #err_strings
@@ -170,7 +170,7 @@ nomsu_environment = Importer{
compile_error_at: (tree, err_msg, hint=nil)->
err_str = pretty_error{
title: "Compile error"
- error:err_msg, hint:hint, source:tree\get_source_code!
+ error:err_msg, hint:hint, source:tree\get_source_file!
start:tree.source.start, stop:tree.source.stop, filename:tree.source.filename
}
error(err_str, 0)