aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-08-08 13:19:33 +0000
committernyamatongwe <unknown>2001-08-08 13:19:33 +0000
commit30e34f8d7d63d336bbb37c5de561d0b4e26d52e7 (patch)
tree1685be2d73ec91c9a802b5d56023a12b87c97341 /src
parentafc4e5d91a694ed0342feb8bafe1e7af684b3d8e (diff)
downloadscintilla-mirror-30e34f8d7d63d336bbb37c5de561d0b4e26d52e7.tar.gz
Lua error messages handled.
Diffstat (limited to 'src')
-rw-r--r--src/LexOthers.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index 492661c62..0814d518c 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -44,7 +44,7 @@ static void ColouriseBatchLine(
if (lineBuffer[i] == ':') {
// Label
if (lineBuffer[i + 1] == ':') {
- // :: is a fake label, similar to REM, see http://www.winmag.com/columns/explorer/2000/21.htm
+ // :: is a fake label, similar to REM, see http://content.techweb.com/winmag/columns/explorer/2000/21.htm
styler.ColourTo(endPos, SCE_BAT_COMMENT);
} else { // Real label
styler.ColourTo(endPos, SCE_BAT_LABEL);
@@ -346,6 +346,12 @@ static void ColouriseErrorListLine(
} else if (0 == strncmp(lineBuffer, "Warning ", strlen("Warning "))) {
// Borland warning message
styler.ColourTo(endPos, SCE_ERR_BORLAND);
+ } else if (strstr(lineBuffer, "at line " ) &&
+ strstr(lineBuffer, "at line " ) < lineBuffer + lengthLine &&
+ strstr(lineBuffer, "file ") &&
+ strstr(lineBuffer, "file ") < lineBuffer + lengthLine) {
+ // Lua error message
+ styler.ColourTo(endPos, SCE_ERR_LUA);
} else if (strstr(lineBuffer, " at " ) &&
strstr(lineBuffer, " at " ) < lineBuffer + lengthLine &&
strstr(lineBuffer, " line ") &&