lualint: Fix line matching

master
Pierre Neidhardt 2015-04-03 16:01:46 +02:00
parent 990cbe8637
commit d500a75405
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ local p = io.popen('luac -p -l -- ' .. arg[1])
for m in p:lines() do
if m:match('ETTABUP.*_ENV') then
local line, op, field = m:match('([%d]+).*(.)ETTABUP.*"([_%w]+)"')
local line, op, field = m:match('(%[[%d]+%]).*(.)ETTABUP.*"([_%w]+)"')
if not globals[field] then
if op == 'G' then
op = '<-'