LDoc warnings/errrors now use GCC format and are recognized by SciTE
This commit is contained in:
parent
5b9bb58a3e
commit
daaf451a7e
|
@ -297,7 +297,7 @@ function Item:warning(msg)
|
|||
local name = self.file and self.file.filename
|
||||
if type(name) == 'table' then pretty.dump(name); name = '?' end
|
||||
name = name or '?'
|
||||
io.stderr:write(name,':',self.lineno or '?',' ',msg,'\n')
|
||||
io.stderr:write(name,':',self.lineno or '1',': ',msg,'\n')
|
||||
return nil
|
||||
end
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ local function parse_file(fname,lang, package)
|
|||
|
||||
function F:warning (msg,kind)
|
||||
kind = kind or 'warning'
|
||||
io.stderr:write(kind..' '..fname..':'..lineno()..' '..msg,'\n')
|
||||
io.stderr:write(kind..' '..fname..':'..lineno()..': '..msg,'\n')
|
||||
end
|
||||
|
||||
function F:error (msg)
|
||||
|
|
Loading…
Reference in New Issue