forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -197,6 +197,8 @@ void Lexer::scan_helper(Token *tok)
|
|||||||
tok->offset = _currentChar - _firstChar;
|
tok->offset = _currentChar - _firstChar;
|
||||||
|
|
||||||
if (_state == State_MultiLineComment || _state == State_MultiLineDoxyComment) {
|
if (_state == State_MultiLineComment || _state == State_MultiLineDoxyComment) {
|
||||||
|
const int originalState = _state;
|
||||||
|
|
||||||
if (! _yychar) {
|
if (! _yychar) {
|
||||||
tok->kind = T_EOF_SYMBOL;
|
tok->kind = T_EOF_SYMBOL;
|
||||||
return;
|
return;
|
||||||
@@ -218,9 +220,8 @@ void Lexer::scan_helper(Token *tok)
|
|||||||
if (! _scanCommentTokens)
|
if (! _scanCommentTokens)
|
||||||
goto _Lagain;
|
goto _Lagain;
|
||||||
|
|
||||||
else if (_state == State_MultiLineComment)
|
else if (originalState == State_MultiLineComment)
|
||||||
tok->kind = T_COMMENT;
|
tok->kind = T_COMMENT;
|
||||||
|
|
||||||
else
|
else
|
||||||
tok->kind = T_DOXY_COMMENT;
|
tok->kind = T_DOXY_COMMENT;
|
||||||
return; // done
|
return; // done
|
||||||
|
Reference in New Issue
Block a user