Do not wait for a "*" if there is any other token after the "/" (ROOT-8529).
This commit is contained in:
parent
cfbf9ee8c8
commit
63482c499d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user