aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexErrorList.cxx
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
commite0dfa86c8e68c5c0f296c4bcfb557785320bb29c (patch)
tree00deb1dc451546765a52cb76f095ebaa204e24e3 /lexers/LexErrorList.cxx
parent1574faec48a478657e0b25ee182b140dc3590408 (diff)
downloadscintilla-mirror-e0dfa86c8e68c5c0f296c4bcfb557785320bb29c.tar.gz
Allow '0' as the line number in GCC errors as some tools report whole file
errors as line 0.
Diffstat (limited to 'lexers/LexErrorList.cxx')
-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