Skip to content
Snippets Groups Projects
Commit a04eff24 authored by Axel Naumann's avatar Axel Naumann
Browse files

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

parent 96009d3c
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment