Make it stop also before outer level closing parens. This way we can now also skip/save the expression inside "foobar(42 + 41)".
Unified · Split
| @@ -5878,7 +5878,7 @@ static void skip_or_save_block(TokenString **str) · 5877 unmodified lines | ||
| 5878 | 5878 | if (str) |
| 5879 | 5879 | *str = tok_str_alloc(); |
| 5880 | 5880 | |
| 5881 | − while ((level > 0 || (tok != '}' && tok != ',' && tok != ';'))) { | |
| 5881 | + while ((level > 0 || (tok != '}' && tok != ',' && tok != ';' && tok != ')'))) { | |
| 5882 | 5882 | int t; |
| 5883 | 5883 | if (tok == TOK_EOF) { |
| 5884 | 5884 | if (str || level > 0) |