WIP: awesomerc.tl should work #85

Draft
Aire-One wants to merge 40 commits from feat/#58 into master
1 changed files with 7 additions and 0 deletions
Showing only changes of commit 4f67316879 - Show all commits

View File

@ -95,7 +95,14 @@ local function merge_nodes(node: Node, other: Node): Node
end end
-- Children should be merged -- Children should be merged
local children: { string : integer } = {}
for i, child in ipairs(node.children) do
children[child.name] = i
end
for _, child in ipairs(other.children) do for _, child in ipairs(other.children) do
if children[child.name] ~= nil then
table.remove(node.children, children[child.name])
end
table.insert(node.children, child) table.insert(node.children, child)
end end