aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-09-09 09:51:41 +1000
committerNeil <nyamatongwe@gmail.com>2015-09-09 09:51:41 +1000
commitdc6e41aa91622f2e7238b4d2fb6b1cab58393961 (patch)
treeac89d78a0da7227030848dfcf8064b661143c19d
parent8139c396aa6575de004f07cb0708f5185842a443 (diff)
downloadscintilla-mirror-dc6e41aa91622f2e7238b4d2fb6b1cab58393961.tar.gz
Allow '0' as the line number in GCC errors as some tools report whole file
errors as line 0.
-rw-r--r--lexers/LexErrorList.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx
index 28348dfe2..f3d68f2ae 100644
--- a/lexers/LexErrorList.cxx
+++ b/lexers/LexErrorList.cxx
@@ -172,7 +172,7 @@ static int RecogniseErrorListLine(const char *lineBuffer, Sci_PositionU lengthLi
canBeCtags = false;
}
} else if (state == stGccStart) { // <filename>:
- state = Is1To9(ch) ? stGccDigit : stUnrecognized;
+ state = Is0To9(ch) ? stGccDigit : stUnrecognized;
} else if (state == stGccDigit) { // <filename>:<line>
if (ch == ':') {
state = stGccColumn; // :9.*: is GCC