fix duplicate labels
This commit is contained in:
		@@ -135,7 +135,9 @@ local function collect_node(doc, l)
 | 
			
		||||
    }
 | 
			
		||||
    for _, t in ipairs(targets) do
 | 
			
		||||
        if nodes[t] then
 | 
			
		||||
            table.insert(blocks, nodes[t]:clone())
 | 
			
		||||
            local cl = nodes[t]:clone()
 | 
			
		||||
            cl.identifier = ""
 | 
			
		||||
            table.insert(blocks, cl)
 | 
			
		||||
            -- show("insert [" .. nodes[t].identifier .. ']\n')
 | 
			
		||||
        else
 | 
			
		||||
            io.stderr:write("Cannot find AST node with label " .. t .. "\n")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user