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. --- doc/ScintillaHistory.html | 3 +++ lexers/LexErrorList.cxx | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index a646f05cd..b4fd684c9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -533,6 +533,9 @@ Bug #210.
  • + The errorlist lexer detects warnings from Visual C++ which do not contain line numbers. +
  • +
  • The HTML lexer no longer treats "<?" inside a string in a script as potentially starting an XML document. Bug #767.
  • 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