If first is after the last, swap them. This fixes extra spaces bug.
if parent then weaveable [parent] = false end
else
weaveable [ast] = true
if parent then weaveable [parent] = false end
else
weaveable [ast] = true
+
+ -- normalize lineinfo
+ -- TODO: FIXME
+ if ast.lineinfo.first[3] > ast.lineinfo.last[3] then
+ ast.lineinfo.first, ast.lineinfo.last = ast.lineinfo.last, ast.lineinfo.first
+ end
end
ast_children [ast] = { }
ast_parent [ast] = parent
end
ast_children [ast] = { }
ast_parent [ast] = parent