Commit c5d600b1 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed highlighting of comment closing element */

Was taking the wrong state, causing it to appear in Doxygen style
instead of as a normal comment.

Fix by Roberto Raggi
parent d9bc54ed
......@@ -197,6 +197,8 @@ void Lexer::scan_helper(Token *tok)
tok->offset = _currentChar - _firstChar;
if (_state == State_MultiLineComment || _state == State_MultiLineDoxyComment) {
const int originalState = _state;
if (! _yychar) {
tok->kind = T_EOF_SYMBOL;
return;
......@@ -218,9 +220,8 @@ void Lexer::scan_helper(Token *tok)
if (! _scanCommentTokens)
goto _Lagain;
else if (_state == State_MultiLineComment)
else if (originalState == State_MultiLineComment)
tok->kind = T_COMMENT;
else
tok->kind = T_DOXY_COMMENT;
return; // done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment