Skip to content

Commit

Permalink
数组属性继承
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Feb 26, 2024
1 parent cce7126 commit da105a8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/workspace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,19 @@ local function create(workdir, parent, attri)
if arguments.args[k] ~= nil then
return
end
attri[k] = pathutil.accept(workdir, v)
if ATTRIBUTE[k] == AttributePaths then
local t = {}
push_paths(t, parent[k], parent.workdir)
push_paths(t, v, workdir)
attri[k] = t
elseif ATTRIBUTE[k] == AttributeStrings then
local t = {}
push_strings(t, parent[k])
push_strings(t, v)
attri[k] = t
else
attri[k] = pathutil.accept(workdir, v)
end
end
if globals == attri then
function mt:__pairs()
Expand Down

0 comments on commit da105a8

Please sign in to comment.