aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-06-29 13:02:29 +0000
committernyamatongwe <devnull@localhost>2004-06-29 13:02:29 +0000
commit0baf2ea0063a296983a3b597a484f806e34b0064 (patch)
tree057a329f2305d101617bc66efad8604fe804de8e
parent52e362a702632545e612dedaabedb259404e6104 (diff)
downloadscintilla-mirror-0baf2ea0063a296983a3b597a484f806e34b0064.tar.gz
Patch from Hans Eckardt to not consider separator comment
lines of all slashes as normal comments instead of doc comments. ////////////////////////////////////////////
-rw-r--r--src/LexCPP.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index 9c8ea416a..fedb978be 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -235,7 +235,8 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
}
sc.Forward(); // Eat the * so it isn't used for the end of the comment
} else if (sc.Match('/', '/')) {
- if (sc.Match("///") || sc.Match("//!")) // Support of Qt/Doxygen doc. style
+ if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!"))
+ // Support of Qt/Doxygen doc. style
sc.SetState(SCE_C_COMMENTLINEDOC);
else
sc.SetState(SCE_C_COMMENTLINE);