Fixed #3386 (Syntax Error: 'int a[]={b<c?1:2,3};')
This commit is contained in:
parent
51c1e2303f
commit
c2e86b867c
|
@ -2109,7 +2109,7 @@ bool Tokenizer::tokenize(std::istream &code,
|
|||
if (!preprocessorCondition) {
|
||||
for (const Token *tok = _tokens; tok; tok = tok->next()) {
|
||||
// skip executing scopes..
|
||||
if (Token::Match(tok, ") const| {") || Token::simpleMatch(tok, ", {")) {
|
||||
if (Token::Match(tok, ") const| {") || Token::Match(tok, "[,=] {")) {
|
||||
while (tok->str() != "{")
|
||||
tok = tok->next();
|
||||
tok = tok->link();
|
||||
|
|
Loading…
Reference in New Issue