From 30e34f8d7d63d336bbb37c5de561d0b4e26d52e7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Aug 2001 13:19:33 +0000 Subject: Lua error messages handled. --- src/LexOthers.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 ") && -- cgit v1.2.3