Skip to content

Commit dd05ca8

Browse files
Update tokenize.cpp
1 parent 0fb9b49 commit dd05ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8855,7 +8855,7 @@ void Tokenizer::findGarbageCode() const
88558855
syntaxError(tok, code);
88568856
}
88578857
}
8858-
if (Token::Match(tok, "%num%|%bool%|%char%|%str% %num%|%bool%|%char%|%str%") && !Token::Match(tok, "%str% %str%"))
8858+
if (Token::Match(tok, "%num%|%bool%|%char%|%str% %num%|%bool%|%char%|%str%|::") && !Token::Match(tok, "%str% %str%"))
88598859
syntaxError(tok);
88608860
if (Token::Match(tok, "%num%|%bool%|%char%|%str% {|(")) {
88618861
if (tok->strAt(1) == "(")

0 commit comments

Comments
 (0)