diff options
author | Neil <nyamatongwe@gmail.com> | 2015-09-09 09:51:41 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-09-09 09:51:41 +1000 |
commit | e0dfa86c8e68c5c0f296c4bcfb557785320bb29c (patch) | |
tree | 00deb1dc451546765a52cb76f095ebaa204e24e3 | |
parent | 1574faec48a478657e0b25ee182b140dc3590408 (diff) | |
download | scintilla-mirror-e0dfa86c8e68c5c0f296c4bcfb557785320bb29c.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.cxx | 2 |
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 |