aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-08-15 02:06:27 +0000
committernyamatongwe <devnull@localhost>2002-08-15 02:06:27 +0000
commit56b6550c0e2f63c997f8180e3c8b56bb2736e4f9 (patch)
tree35eb0fd2fd0402046d66793ce0dd2b5fa0a9f8d3 /src
parent6b146e181859b1ca20cb4c9bc46f7731af9fdb1f (diff)
downloadscintilla-mirror-56b6550c0e2f63c997f8180e3c8b56bb2736e4f9.tar.gz
Made the CTAGS recogniser much more picky.
Diffstat (limited to 'src')
-rw-r--r--src/LexOthers.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index 701059143..babb3a0d3 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -346,6 +346,9 @@ static void ColouriseErrorListLine(
if (lineBuffer[0] == '>') {
// Command or return status
styler.ColourTo(endPos, SCE_ERR_CMD);
+ } else if (lineBuffer[0] == '<') {
+ // Diff removal, but not interested. Trapped to avoid hitting CTAG cases.
+ styler.ColourTo(endPos, SCE_ERR_DEFAULT);
} else if (lineBuffer[0] == '!') {
styler.ColourTo(endPos, SCE_ERR_DIFF_CHANGED);
} else if (lineBuffer[0] == '+') {
@@ -410,7 +413,8 @@ static void ColouriseErrorListLine(
break;
} else if (((state == 11) || (state == 14)) && !((lineBuffer[i] == ' ') || isdigit(lineBuffer[i]))) {
state = 99;
- } else if ((state == 20) && isdigit(lineBuffer[i])) {
+ } else if ((state == 20) && (lineBuffer[i-1] == '\t') &&
+ ((lineBuffer[i] == '/' && lineBuffer[i+1] == '^') || isdigit(lineBuffer[i]))) {
state = 24;
break;
} else if ((state == 20) && ((lineBuffer[i] == '/') && (lineBuffer[i+1] == '^'))) {