diff options
| author | nyamatongwe <devnull@localhost> | 2013-02-20 13:41:17 +1100 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2013-02-20 13:41:17 +1100 |
| commit | dd801b3c31c58aae1c1543bb058385dc36863e73 (patch) | |
| tree | fe71f95075f78a13f40b120dcd19a4ec7440e31d /lexers/LexOthers.cxx | |
| parent | d62c4501e6052c30c820ba0f25c3fc3b9d477970 (diff) | |
| download | scintilla-mirror-dd801b3c31c58aae1c1543bb058385dc36863e73.tar.gz | |
Recognise GCC include path diagnostics that appear before an error.
Diffstat (limited to 'lexers/LexOthers.cxx')
| -rw-r--r-- | lexers/LexOthers.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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: <filename>:<line>:<message> |
