mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
fix rockspec
This commit is contained in:
parent
c9886272c1
commit
63437f8c52
11
moon
11
moon
@ -84,12 +84,11 @@ table.insert(package.loaders, 2, moon_loader)
|
||||
local file, err = io.open(script)
|
||||
if not file then error(err) end
|
||||
|
||||
local new_arg = { [-1] = arg[0] }
|
||||
local j = 0
|
||||
for i=ind,#arg do
|
||||
new_arg[j] = arg[i]
|
||||
j = j + 1
|
||||
end
|
||||
local new_arg = {
|
||||
[-1] = arg[0],
|
||||
[0] = arg[ind],
|
||||
select(ind + 1, unpack(arg))
|
||||
}
|
||||
|
||||
local chunk = moon_chunk(file, script)
|
||||
getfenv(chunk).arg = new_arg
|
||||
|
@ -23,6 +23,8 @@ build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
["moonscript.compile2"] = "moonscript/compile2.lua",
|
||||
["moonscript.compile.line"] = "moonscript/compile/line.lua",
|
||||
["moonscript.compile.format"] = "moonscript/compile/format.lua",
|
||||
["moonscript.parse"] = "moonscript/parse.lua",
|
||||
["moonscript.dump"] = "moonscript/dump.lua",
|
||||
["moonscript.data"] = "moonscript/data.lua",
|
||||
|
Loading…
Reference in New Issue
Block a user