aboutsummaryrefslogtreecommitdiff
path: root/nomsu_environment.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-11 15:05:18 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-11 15:05:56 -0800
commit9a75d25c843b03e3671b71384fd48deb0607db43 (patch)
tree8baf212544a15fde2150fe790b4414d608a55663 /nomsu_environment.moon
parent65ec3f597f0f39e01fa44a14ea4971c797a015c2 (diff)
Lots of fixes to the upgrading and codegen/autoformatting pipeline, also
deleted nomnom files, since they're mostly not needed anymore.
Diffstat (limited to 'nomsu_environment.moon')
-rw-r--r--nomsu_environment.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon
index 4c8ba28..0d80e0d 100644
--- a/nomsu_environment.moon
+++ b/nomsu_environment.moon
@@ -65,6 +65,8 @@ nomsu_environment = Importer{
syntax_version = version and tonumber(version\match("^[0-9]+")) or max_parser_version
parse = Parsers[syntax_version] or Parsers[max_parser_version]
tree = parse(nomsu_code, source.filename)
+ if tree.shebang
+ tree.version = tree.shebang\match("nomsu %-V[ ]*([%d.]*)")
find_errors = (t)->
if t.type == "Error"
coroutine.yield t