Skip to content

Commit

Permalink
Update tokenize.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 26, 2024
1 parent 4b17af3 commit 60bd5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8644,7 +8644,7 @@ void Tokenizer::findGarbageCode() const
syntaxError(tok, tok->str() + " " + tok->strAt(1));
if (Token::simpleMatch(tok, "::") && (!Token::Match(tok->next(), "%name%|*|~") || (tok->next()->isKeyword() && tok->strAt(1) != "operator")))
syntaxError(tok);
if (Token::Match(tok, "& %op%|%cop%"))
if (Token::Match(tok, "& %op%|%cop%") && tok->strAt(1) != ">")
syntaxError(tok);
}

Expand Down

0 comments on commit 60bd5a9

Please sign in to comment.