C++: Fix highlighting of doxygen's "///"

The color scheme changed for "///\n" lines:

 "///\n"       - "Doxygen Comment" (was "Comment")
 "/// hello\n" - "Doxygen Comment" (as before)
 "////...\n"   - "Comment" (as before)

Change-Id: I6bdaf471760bb05547385fd4821eded6cefed4d7
Reviewed-by: Knut Petter Svendsen <knutpett@pvv.org>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2013-02-06 14:58:09 +01:00
parent 2a88db5fa8
commit 61460951ce
4 changed files with 117 additions and 4 deletions

View File

@@ -369,11 +369,10 @@ void Lexer::scan_helper(Token *tok)
if (_yychar == '/' || _yychar == '!') {
yyinp();
if (_yychar == '<')
if (_yychar == '<' || _yychar != '/') {
yyinp();
if (_yychar != '\n' && std::isspace(_yychar))
doxy = true;
}
}
while (_yychar && _yychar != '\n')