diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 17:14:34 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 17:14:57 -0800 |
| commit | ddef8be3df626d63f6e575d4c1416295a22371ad (patch) | |
| tree | 78af9584447b085f06d6412d2cc20137a460848b /nomsu_environment.moon | |
| parent | 9fceff7e785bb234971b443809eef3da9051c598 (diff) | |
Moved compatibility to lib/ and fixed path searching for .peg files.
Diffstat (limited to 'nomsu_environment.moon')
| -rw-r--r-- | nomsu_environment.moon | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon index 6049555..13cf776 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -20,7 +20,7 @@ max_parser_version = 0 for version=1,999 local peg_file if package.nomsupath - pegpath = package.nomsupath\gsub("%.nom", ".peg") + pegpath = package.nomsupath\gsub("lib/%?%.nom", "?.peg")\gsub("lib/%?%.lua", "?.peg") if path = package.searchpath("nomsu.#{version}", pegpath, "/") peg_file = io.open(path) else |
