LDoc warnings/errrors now use GCC format and are recognized by SciTE

This commit is contained in:
steve donovan 2011-08-26 15:07:35 +02:00
parent 5b9bb58a3e
commit daaf451a7e
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ function Item:warning(msg)
local name = self.file and self.file.filename local name = self.file and self.file.filename
if type(name) == 'table' then pretty.dump(name); name = '?' end if type(name) == 'table' then pretty.dump(name); name = '?' end
name = name or '?' name = name or '?'
io.stderr:write(name,':',self.lineno or '?',' ',msg,'\n') io.stderr:write(name,':',self.lineno or '1',': ',msg,'\n')
return nil return nil
end end

View File

@ -90,7 +90,7 @@ local function parse_file(fname,lang, package)
function F:warning (msg,kind) function F:warning (msg,kind)
kind = kind or 'warning' kind = kind or 'warning'
io.stderr:write(kind..' '..fname..':'..lineno()..' '..msg,'\n') io.stderr:write(kind..' '..fname..':'..lineno()..': '..msg,'\n')
end end
function F:error (msg) function F:error (msg)