diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-28 23:24:18 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-28 23:24:43 -0700 |
| commit | b6be516e3fbc082b1dbd9740b95185976f4b0040 (patch) | |
| tree | 69d5b148bf9344edbbf3289f41fdf876af519e1e /nomsu.moon | |
| parent | 66fa60100e64a1ec2d54e884c5d6e4a98e88fa56 (diff) | |
Fix for luajit, though I'm not sure why it worked for lua either.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -14,6 +14,8 @@ export lpeg, re _pairs, _ipairs = pairs, ipairs if jit package.cpath = "./luajit_lpeg/?.so;"..package.cpath + --package.path = "./LPegLJ/src/?.lua;"..package.path + lpeg = require "lpeglj" export bit32 bit32 = require('bit') @@ -29,9 +31,10 @@ if jit if mt.__ipairs return mt.__ipairs(x) return _ipairs(x) +else + lpeg = require 'lpeg' re = require 're' -lpeg = require 'lpeg' lpeg.setmaxstack 10000 {:P,:R,:V,:S,:Cg,:C,:Cp,:B,:Cmt,:Carg} = lpeg utils = require 'utils' |
