From daaf451a7e0ead8e0a0fc756495c2b2da0388ab9 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Fri, 26 Aug 2011 15:07:35 +0200 Subject: [PATCH] LDoc warnings/errrors now use GCC format and are recognized by SciTE --- ldoc/doc.lua | 2 +- ldoc/parse.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 7eca9b1..1511aec 100644 --- a/ldoc/doc.lua +++ b/ldoc/doc.lua @@ -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 diff --git a/ldoc/parse.lua b/ldoc/parse.lua index 2d6b0b5..d2633e2 100644 --- a/ldoc/parse.lua +++ b/ldoc/parse.lua @@ -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)