gv.setv(E, 'arrowsize', '.4')
for rec in modules do
- for mod, usedbylist in string.gfind(rec, "([_%w]+) %w+ %w+ ([-,_%w]+)") do
+
+ -- note - Lua's "gfind" in 5.1 became "fmatch" in 5.2
+
+
+ for mod, usedbylist in string.gmatch(rec, "([_%w]+) %w+ %w+ ([-,_%w]+)") do
n = gv.node(G, mod)
- for usedby in string.gfind(usedbylist, "([-_%w]+)") do
+ for usedby in string.gmatch(usedbylist, "([-_%w]+)") do
if (usedby ~= '-') and (usedby ~= '') then
gv.edge(n, gv.node(G, usedby))
end