From e0dfa86c8e68c5c0f296c4bcfb557785320bb29c Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 9 Sep 2015 09:51:41 +1000 Subject: Allow '0' as the line number in GCC errors as some tools report whole file errors as line 0. --- lexers/LexErrorList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') 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) { // : - state = Is1To9(ch) ? stGccDigit : stUnrecognized; + state = Is0To9(ch) ? stGccDigit : stUnrecognized; } else if (state == stGccDigit) { // : if (ch == ':') { state = stGccColumn; // :9.*: is GCC -- cgit v1.2.3