diff options
author | nyamatongwe <devnull@localhost> | 2001-11-14 01:16:10 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-11-14 01:16:10 +0000 |
commit | d2543254f754fc52d2590b8c2424d6d06dbc1e15 (patch) | |
tree | cf88ff85e1ca73c9eabe70d056cd3eec82e02e2b | |
parent | 2a01dc4b1dc4dd21ad79aab079b5c6e450729f40 (diff) | |
download | scintilla-mirror-d2543254f754fc52d2590b8c2424d6d06dbc1e15.tar.gz |
Patch from Philippe to make doc comment keywords work throughout doc
comments.
-rw-r--r-- | src/LexCPP.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index b0471b8e5..9248bd68e 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -66,7 +66,6 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo int chPrevNonWhite = ' '; int visibleChars = 0; - int noDocChars = 0; bool lastWordWasUUID = false; StyleContext sc(startPos, length, initStyle, styler); @@ -126,12 +125,8 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_C_DEFAULT); - } else if ((sc.ch == '@' || sc.ch == '\\') && (noDocChars == 0)) { + } else if (sc.ch == '@' || sc.ch == '\\') { sc.SetState(SCE_C_COMMENTDOCKEYWORD); - } else if (sc.atLineEnd) { - noDocChars = 0; - } else if (!isspace(sc.ch) && (sc.ch != '*')) { - noDocChars++; } } else if (sc.state == SCE_C_COMMENTLINE || sc.state == SCE_C_COMMENTLINEDOC) { if (sc.atLineEnd) { @@ -219,7 +214,6 @@ 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 = 0; sc.SetState(SCE_C_COMMENTDOC); } else { sc.SetState(SCE_C_COMMENT); |