aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-09-19 12:29:35 +0000
committernyamatongwe <devnull@localhost>2001-09-19 12:29:35 +0000
commit4b756ed4cb2b592b4f32944e3881673f137f4eb2 (patch)
tree8895e9cdb198da122cdb56d2e444a96254b1a47d
parent97eb55b4e3f7ef34bec93e5b4060fb4fc6cc1365 (diff)
downloadscintilla-mirror-4b756ed4cb2b592b4f32944e3881673f137f4eb2.tar.gz
Fix to ignore '*' before doc comment keywords.
-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);