diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 789076a4a..77ac2005e 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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();