Extend skip_or_save_block

Make it stop also before outer level closing parens.  This way
we can now also skip/save the expression inside "foobar(42 + 41)".
master
Michael Matz 2017-07-03 19:15:16 +02:00
parent 27ca303874
commit 580ad5f24c
1 changed files with 1 additions and 1 deletions

View File

@ -5878,7 +5878,7 @@ static void skip_or_save_block(TokenString **str)
if (str)
*str = tok_str_alloc();
while ((level > 0 || (tok != '}' && tok != ',' && tok != ';'))) {
while ((level > 0 || (tok != '}' && tok != ',' && tok != ';' && tok != ')'))) {
int t;
if (tok == TOK_EOF) {
if (str || level > 0)