aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexOthers.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-10-26 04:42:35 +0000
committernyamatongwe <unknown>2002-10-26 04:42:35 +0000
commit6773a490e7087efbe0256e937856c8feac4cd3d6 (patch)
tree7f6a65d909eb72c8395d0fbd43f01696e7017470 /src/LexOthers.cxx
parent10eeedde657c16b277803c6d3001c007b03bb643 (diff)
downloadscintilla-mirror-6773a490e7087efbe0256e937856c8feac4cd3d6.tar.gz
Patch from Jakub Vrána to recognise PHP errors.
Diffstat (limited to 'src/LexOthers.cxx')
-rw-r--r--src/LexOthers.cxx2
1 files changed, 2 insertions, 0 deletions
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);