This commit is contained in:
Daniel Mathiot
2021-10-03 13:56:44 +02:00
parent f1f28f1afa
commit ca1c905bad

View File

@@ -35,7 +35,6 @@ neogen.utilities.nodes = {
local results = opts.results or {} local results = opts.results or {}
for child in parent:iter_children() do for child in parent:iter_children() do
-- Find the first recursive item and breaks -- Find the first recursive item and breaks
if opts.first then if opts.first then
if child:named() and child:type() == node_name then if child:named() and child:type() == node_name then
@@ -92,7 +91,6 @@ neogen.utilities.nodes = {
matched = self:recursive_find(parent, subtree.node_type) matched = self:recursive_find(parent, subtree.node_type)
end end
for _, child in pairs(matched) do for _, child in pairs(matched) do
if subtree.extract == true then if subtree.extract == true then
local name = subtree.node_type or "_" local name = subtree.node_type or "_"