Skip to content

Commit 7b546d1

Browse files
Update tokenize.cpp
1 parent 1e79f7f commit 7b546d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8987,6 +8987,8 @@ void Tokenizer::findGarbageCode() const
89878987
if (!Token::Match(tok->next(), "%name%|*|~"))
89888988
syntaxError(tok, tok->strAt(-1) + " " + tok->str() + " " + tok->strAt(1));
89898989
}
8990+
if (Token::Match(tok, ".|-> .|->"))
8991+
syntaxError(tok);
89908992
if (Token::Match(tok, "[{,] . %name%") && !Token::Match(tok->tokAt(3), "[.=[{]"))
89918993
syntaxError(tok->next());
89928994
if (Token::Match(tok, "%name% %op% %name%") && !tok->isKeyword() && tok->next()->isIncDecOp())

0 commit comments

Comments
 (0)