This commit is contained in:
Julian Brammer 2024-06-12 21:34:01 +02:00
parent 98fccf8dc1
commit 736707a5bb

View File

@ -28,12 +28,19 @@ function lines_from(file)
end
-- tests the functions above
local file = 'test.lua'
local file = 'brulijam/shape0.svg'
local lines = lines_from(file)
-- 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
print('line[' .. k .. ']', v)
if string.match(v, "green") then
print(k .. ": yay")
end
end