forked from Mirrors/tinycc
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
parent
27ca303874
commit
580ad5f24c
2
tccgen.c
2
tccgen.c
|
@ -5878,7 +5878,7 @@ static void skip_or_save_block(TokenString **str)
|
||||||
if (str)
|
if (str)
|
||||||
*str = tok_str_alloc();
|
*str = tok_str_alloc();
|
||||||
|
|
||||||
while ((level > 0 || (tok != '}' && tok != ',' && tok != ';'))) {
|
while ((level > 0 || (tok != '}' && tok != ',' && tok != ';' && tok != ')'))) {
|
||||||
int t;
|
int t;
|
||||||
if (tok == TOK_EOF) {
|
if (tok == TOK_EOF) {
|
||||||
if (str || level > 0)
|
if (str || level > 0)
|
||||||
|
|
Loading…
Reference in New Issue