From 68550bd2c421c2cb3dc8d0e7e887f92f438be334 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 20 Feb 2013 13:41:17 +1100 Subject: Recognise GCC include path diagnostics that appear before an error. --- lexers/LexOthers.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lexers') diff --git a/lexers/LexOthers.cxx b/lexers/LexOthers.cxx index 8a21f2b55..d73b86f00 100644 --- a/lexers/LexOthers.cxx +++ b/lexers/LexOthers.cxx @@ -942,6 +942,10 @@ static int RecogniseErrorListLine(const char *lineBuffer, unsigned int lengthLin strstr(lineBuffer, ".java:")) { // Java stack back trace return SCE_ERR_JAVA_STACK; + } else if (strstart(lineBuffer, "In file included from ") || + strstart(lineBuffer, " from ")) { + // GCC showing include path to following error + return SCE_ERR_FROM; } else { // Look for one of the following formats: // GCC: :: -- cgit v1.2.3