From 9a75d25c843b03e3671b71384fd48deb0607db43 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:05:18 -0800 Subject: Lots of fixes to the upgrading and codegen/autoformatting pipeline, also deleted nomnom files, since they're mostly not needed anymore. --- nomsu_environment.moon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nomsu_environment.moon') 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 -- cgit v1.2.3