From 0ff85f14a790e71357e3bfafd04c095944f068e4 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 30 Aug 2016 12:01:48 +1000 Subject: Detect warnings from Visual C++ which do not contain line numbers. --- lexers/LexErrorList.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lexers') diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx index d6fe5ee77..142b7b5a5 100644 --- a/lexers/LexErrorList.cxx +++ b/lexers/LexErrorList.cxx @@ -257,6 +257,10 @@ static int RecogniseErrorListLine(const char *lineBuffer, Sci_PositionU lengthLi return SCE_ERR_MS; } else if ((state == stCtagsStringDollar) || (state == stCtags)) { return SCE_ERR_CTAG; + } else if (initialColonPart && strstr(lineBuffer, ": warning C")) { + // Microsoft warning without line number + // : warning C9999 + return SCE_ERR_MS; } else { return SCE_ERR_DEFAULT; } -- cgit v1.2.3