diff options
author | Neil <nyamatongwe@gmail.com> | 2016-08-30 12:01:48 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-08-30 12:01:48 +1000 |
commit | 0ff85f14a790e71357e3bfafd04c095944f068e4 (patch) | |
tree | d9cd64081cce626b4edb431b1456ae7f19ef0ef4 | |
parent | b537f8063c16ad720a03c0347142eaa39310e6a9 (diff) | |
download | scintilla-mirror-0ff85f14a790e71357e3bfafd04c095944f068e4.tar.gz |
Detect warnings from Visual C++ which do not contain line numbers.
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | lexers/LexErrorList.cxx | 4 |
2 files changed, 7 insertions, 0 deletions
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 @@ <a href="http://sourceforge.net/p/scintilla/feature-requests/210/">Bug #210</a>. </li> <li> + The errorlist lexer detects warnings from Visual C++ which do not contain line numbers. + </li> + <li> The HTML lexer no longer treats "<?" inside a string in a script as potentially starting an XML document. <a href="http://sourceforge.net/p/scintilla/bugs/767/">Bug #767</a>. </li> 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 + // <filename>: warning C9999 + return SCE_ERR_MS; } else { return SCE_ERR_DEFAULT; } |