Do not wait for a "*" if there is any other token after the "/" (ROOT-8529).

This commit is contained in:
Axel Naumann 2017-01-12 17:01:35 +01:00 committed by sftnight
parent cfbf9ee8c8
commit 63482c499d

View File

@ -89,7 +89,10 @@ namespace cling {
do {
const char* prevStart = curPos;
MetaLexer::LexPunctuatorAndAdvance(curPos, Tok);
if (!MetaLexer::LexPunctuatorAndAdvance(curPos, Tok)) {
// there were tokens between the previous and this Tok.
commentTok = tok::slash;
}
const int kind = (int)Tok.getKind();
if (kind == commentTok) {