diff --git a/lib/token.cpp b/lib/token.cpp index bb5955283..13c6372e6 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -1191,8 +1191,9 @@ std::pair Token::findExpressionStartEndTokens() co end = lambdaEnd; break; } - } else if (Token::Match(end,"(|[") && - !(Token::Match(end, "( %type%") && !end->astOperand2())) { + } + if (Token::Match(end,"(|[") && + !(Token::Match(end, "( %type%") && !end->astOperand2())) { end = end->link(); break; }