diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 15:05:18 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 15:05:56 -0800 |
| commit | 9a75d25c843b03e3671b71384fd48deb0607db43 (patch) | |
| tree | 8baf212544a15fde2150fe790b4414d608a55663 /nomsu_environment.lua | |
| parent | 65ec3f597f0f39e01fa44a14ea4971c797a015c2 (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.lua')
| -rw-r--r-- | nomsu_environment.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nomsu_environment.lua b/nomsu_environment.lua index ac99246..a4ade61 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -122,6 +122,9 @@ local nomsu_environment = Importer({ local syntax_version = version and tonumber(version:match("^[0-9]+")) or max_parser_version local parse = Parsers[syntax_version] or Parsers[max_parser_version] local tree = parse(nomsu_code, source.filename) + if tree.shebang then + tree.version = tree.shebang:match("nomsu %-V[ ]*([%d.]*)") + end local find_errors find_errors = function(t) if t.type == "Error" then |
