Fixed: Parsing of /**/ tokens.

This commit is contained in:
Roberto Raggi
2009-03-02 19:00:57 +01:00
parent ed69c39906
commit f96d8ff9e0

View File

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