.
This commit is contained in:
parent
98fccf8dc1
commit
736707a5bb
@ -28,12 +28,19 @@ function lines_from(file)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- tests the functions above
|
-- tests the functions above
|
||||||
local file = 'test.lua'
|
local file = 'brulijam/shape0.svg'
|
||||||
local lines = lines_from(file)
|
local lines = lines_from(file)
|
||||||
|
|
||||||
-- print all line numbers and their contents
|
-- print all line numbers and their contents
|
||||||
|
--for k,v in pairs(lines) do
|
||||||
|
-- print('line[' .. k .. ']', v)
|
||||||
|
--end
|
||||||
|
|
||||||
|
|
||||||
for k,v in pairs(lines) do
|
for k,v in pairs(lines) do
|
||||||
print('line[' .. k .. ']', v)
|
if string.match(v, "green") then
|
||||||
|
print(k .. ": yay")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user