From 6773a490e7087efbe0256e937856c8feac4cd3d6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Oct 2002 04:42:35 +0000 Subject: =?UTF-8?q?Patch=20from=20Jakub=20Vr=C3=A1na=20to=20recognise=20PH?= =?UTF-8?q?P=20errors.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/SciLexer.h | 1 + include/Scintilla.iface | 1 + src/LexOthers.cxx | 2 ++ 3 files changed, 4 insertions(+) diff --git a/include/SciLexer.h b/include/SciLexer.h index 8137db8f3..f3bd22d8b 100644 --- a/include/SciLexer.h +++ b/include/SciLexer.h @@ -277,6 +277,7 @@ #define SCE_ERR_DIFF_ADDITION 11 #define SCE_ERR_DIFF_DELETION 12 #define SCE_ERR_DIFF_MESSAGE 13 +#define SCE_ERR_PHP 14 #define SCE_BAT_DEFAULT 0 #define SCE_BAT_COMMENT 1 #define SCE_BAT_WORD 2 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index ef5b6d899..cd1bacb70 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1730,6 +1730,7 @@ val SCE_ERR_DIFF_CHANGED=10 val SCE_ERR_DIFF_ADDITION=11 val SCE_ERR_DIFF_DELETION=12 val SCE_ERR_DIFF_MESSAGE=13 +val SCE_ERR_PHP=14 # Lexical states for SCLEX_BATCH lex Batch=SCLEX_BATCH SCE_BAT_ val SCE_BAT_DEFAULT=0 diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx index babb3a0d3..60f91ba5f 100644 --- a/src/LexOthers.cxx +++ b/src/LexOthers.cxx @@ -359,6 +359,8 @@ static void ColouriseErrorListLine( styler.ColourTo(endPos, SCE_ERR_DIFF_DELETION); } else if (strstr(lineBuffer, "File \"") && strstr(lineBuffer, ", line ")) { styler.ColourTo(endPos, SCE_ERR_PYTHON); + } else if (strstr(lineBuffer, " in ") && strstr(lineBuffer, " on line ")) { + styler.ColourTo(endPos, SCE_ERR_PHP); } else if (0 == strncmp(lineBuffer, "Error ", strlen("Error "))) { // Borland error message styler.ColourTo(endPos, SCE_ERR_BORLAND); -- cgit v1.2.3