Fixed #3386 (Syntax Error: 'int a[]={b<c?1:2,3};')

This commit is contained in:
Daniel Marjamäki 2011-12-10 11:34:27 +01:00
parent 51c1e2303f
commit c2e86b867c
1 changed files with 1 additions and 1 deletions

View File

@ -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();