-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
#! /usr/bin/lua
local function format_mi()
local head = {}
local entries = {}
local mi = assert(io.open("mi", "r"))
for line in mi:lines() do
if line:sub(1, 2) == "./" then
table.insert(entries, line)
else
table.insert(head, line)
end
end
io.write(string.format("%d head, %d entries\n", #head, #entries))
end
format_mi()The following identifiers are wrongly marked as unused:
format_miin line 3headin line 4entriesin line 5miin line 7linein line 8
The function assert in line 7 is highlighted and marked as "Unassigned variable usage", which is also wrong. I did set up Lua 5.3.5, which runs the program successfully.
Metadata
Metadata
Assignees
Labels
No labels
