3 emit
=function(filename
)
4 local prefix
, file
, line
, err
, word
;
5 if string.match(filename
, "%.%./(.*)") then
8 prefix
= string.match(filename
, "(.*/)[^/]*");
10 io
.stdout
:write(" " .. filename
);
13 file
, err
= io
.open(filename
, "r");
18 for line
in file
:lines() do
19 for word
in string.gmatch(line
, "%S+") do
20 s
= s
.. " " .. prefix
.. word
;