diff options
author | nyamatongwe <unknown> | 2002-08-15 02:06:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-08-15 02:06:27 +0000 |
commit | 377966e649fa3bc55fc594e6e4aaca37b0ff6fa6 (patch) | |
tree | 35eb0fd2fd0402046d66793ce0dd2b5fa0a9f8d3 | |
parent | 104188fbe2aa005fcb6904105f2ce8268c6565fd (diff) | |
download | scintilla-mirror-377966e649fa3bc55fc594e6e4aaca37b0ff6fa6.tar.gz |
Made the CTAGS recogniser much more picky.
-rw-r--r-- | src/LexOthers.cxx | 6 |
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] == '^'))) { |