moonscript, busted, penlight packages + debugger speed improvements

This commit is contained in:
kepler155c@gmail.com
2020-06-09 18:17:21 -06:00
parent de3d73de70
commit 0f7534d12c
19 changed files with 1065 additions and 1561 deletions

19
pl/init/6.penlight.lua Normal file
View File

@@ -0,0 +1,19 @@
--[[
local getfenv = _G.getfenv
-- penlight requires a global package to determine path separator
-- some funky things in penlight regarding global access
_G.package = {
config = '/\n:\n?\n!\n-',
}
_G.require = function(module)
for i = 2, 3 do
local env = getfenv(i)
if env ~= _G then
return env.require(module)
end
end
error('invalid environment for require')
end
]]