aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-04-16 08:02:19 +0000
committernyamatongwe <unknown>2002-04-16 08:02:19 +0000
commit2612d21798552cfc66304ba84a50dd5174f6ceff (patch)
treebfdb3e61b2a422c8d596493b954d0c9819eb5bc8 /src
parente2df63971683247f2f610402b977861bb9a6353c (diff)
downloadscintilla-mirror-2612d21798552cfc66304ba84a50dd5174f6ceff.tar.gz
Patch from Holger Kiemes to recognise more tag line formats.
Diffstat (limited to 'src')
-rw-r--r--src/LexOthers.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index 8a035089c..e964197db 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -388,6 +388,8 @@ static void ColouriseErrorListLine(
state = 1;
} else if ((state == 0) && (lineBuffer[i] == '(')) {
state = 10;
+ } else if ((state == 0) && (lineBuffer[i] == '\t')) {
+ state = 20;
} else if ((state == 1) && isdigit(lineBuffer[i])) {
state = 2;
} else if ((state == 2) && (lineBuffer[i] == ':')) {
@@ -408,12 +410,22 @@ static void ColouriseErrorListLine(
break;
} else if (((state == 11) || (state == 14)) && !((lineBuffer[i] == ' ') || isdigit(lineBuffer[i]))) {
state = 99;
+ } else if ((state == 20) && isdigit(lineBuffer[i])) {
+ state = 24;
+ break;
+ } else if ((state == 20) && ((lineBuffer[i] == '/') && (lineBuffer[i+1] == '^'))) {
+ state = 21;
+ } else if ((state == 21) && ((lineBuffer[i] == '$') && (lineBuffer[i+1] == '/'))) {
+ state = 22;
+ break;
}
}
if (state == 3) {
styler.ColourTo(endPos, SCE_ERR_GCC);
} else if ((state == 13) || (state == 14) || (state == 15)) {
styler.ColourTo(endPos, SCE_ERR_MS);
+ } else if ((state == 22) || (state == 24)) {
+ styler.ColourTo(endPos, SCE_ERR_CTAG);
} else {
styler.ColourTo(endPos, SCE_ERR_DEFAULT);
}