diff --git a/src/tokenize.cpp b/src/tokenize.cpp index e4bc9d54c..34286c1a7 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -1348,6 +1348,8 @@ void Tokenizer::simplifyTokenList() // Ok, we should be clean. Add ) after tempToken tok->insertToken("("); tempToken->insertToken(")"); + tok->next()->link(tempToken->next()); + tempToken->next()->link(tok->next()); break; } }