aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/LexCPP.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index 24888a6df..b0471b8e5 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -130,7 +130,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
sc.SetState(SCE_C_COMMENTDOCKEYWORD);
} else if (sc.atLineEnd) {
noDocChars = 0;
- } else if (!isspace(sc.ch)) {
+ } else if (!isspace(sc.ch) && (sc.ch != '*')) {
noDocChars++;
}
} else if (sc.state == SCE_C_COMMENTLINE || sc.state == SCE_C_COMMENTLINEDOC) {
@@ -219,7 +219,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo
}
} else if (sc.Match('/', '*')) {
if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style
- noDocChars = -1;
+ noDocChars = 0;
sc.SetState(SCE_C_COMMENTDOC);
} else {
sc.SetState(SCE_C_COMMENT);