aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexErrorList.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2016-08-30 12:01:48 +1000
committerNeil <nyamatongwe@gmail.com>2016-08-30 12:01:48 +1000
commit0ff85f14a790e71357e3bfafd04c095944f068e4 (patch)
treed9cd64081cce626b4edb431b1456ae7f19ef0ef4 /lexers/LexErrorList.cxx
parentb537f8063c16ad720a03c0347142eaa39310e6a9 (diff)
downloadscintilla-mirror-0ff85f14a790e71357e3bfafd04c095944f068e4.tar.gz
Detect warnings from Visual C++ which do not contain line numbers.
Diffstat (limited to 'lexers/LexErrorList.cxx')
-rw-r--r--lexers/LexErrorList.cxx4
1 files changed, 4 insertions, 0 deletions
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;
}