From 6a935190ee8d3c8ee9c7ce46716bf162a5f529f6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 19 Sep 2001 12:29:35 +0000 Subject: Fix to ignore '*' before doc comment keywords. --- src/LexCPP.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3