Skip to content

Commit f815ce3

Browse files
Update tokenize.cpp
1 parent dbe5f99 commit f815ce3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9146,7 +9146,7 @@ void Tokenizer::findGarbageCode() const
91469146
if (!tok2->next() || tok2->isControlFlowKeyword() || Token::Match(tok2, "typedef|static|."))
91479147
syntaxError(tok);
91489148
if (Token::Match(tok2, "%name% %name%")) {
9149-
if (Token::Match(tok2->tokAt(2), "%name%") && !(tok2->isKeyword() || tok2->tokAt(1)->isKeyword() || tok2->tokAt(2)->isKeyword())
9149+
if (Token::Match(tok2->tokAt(2), "%name%") && !(tok2->isKeyword() || tok2->tokAt(1)->isKeyword() || tok2->tokAt(2)->isKeyword()))
91509150
syntaxError(tok2);
91519151
if (tok2->str() == tok2->strAt(1)) {
91529152
if (Token::simpleMatch(tok2->tokAt(2), ";"))

0 commit comments

Comments
 (0)