Skip to content

Commit 73b719c

Browse files
committed
Fix
1 parent bf72aa3 commit 73b719c

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
@@ -9155,7 +9155,7 @@ void Tokenizer::findGarbageCode() const
91559155
continue;
91569156
syntaxError(tok2);
91579157
}
9158-
if (Token::Match(tok2->tokAt(2), "%name%") && !(tok2->isKeyword() || tok2->tokAt(1)->isKeyword() || tok2->tokAt(2)->isKeyword()))
9158+
if (Token::Match(tok2->tokAt(2), "%name%") && tok2->isNameOnly() && tok2->tokAt(1)->isNameOnly() && tok2->tokAt(2)->isNameOnly())
91599159
syntaxError(tok2);
91609160
}
91619161
}

0 commit comments

Comments
 (0)