diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index f0911a916..04d3a76d2 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -677,7 +677,7 @@ static void compilePrecedence2(Token *&tok, AST_state& state) } else compileBinOp(tok, state, compileScope); } else if (tok->str() == "[") { - if (state.cpp && isPrefixUnary(tok, state.cpp) && Token::Match(tok->link(), " ] (|{")) { // Lambda + if (state.cpp && isPrefixUnary(tok, state.cpp) && Token::Match(tok->link(), "] (|{")) { // Lambda // What we do here: // - Nest the round bracket under the square bracket. // - Nest what follows the lambda (if anything) with the lambda opening [