Commit f96d8ff9 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed: Parsing of /**/ tokens.

parent ed69c399
......@@ -428,8 +428,13 @@ void Lexer::scan_helper(Token *tok)
bool doxy = false;
if (_yychar == '*' || _yychar == '!') {
const char ch = _yychar;
yyinp();
if (ch == '*' && _yychar == '/')
goto _Ldone;
if (! _yychar || std::isspace(_yychar))
doxy = true;
}
......@@ -444,6 +449,7 @@ void Lexer::scan_helper(Token *tok)
}
}
_Ldone:
if (_yychar)
yyinp();
else
......
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