awk: rollback_token() + chain_group() == chain_until_rbrace()
function old new delta parse_program 336 332 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e2e3802987
commit
49c3ce64f0
@ -1778,8 +1778,7 @@ static void parse_program(char *p)
|
|||||||
cn->l.n = parse_expr(TC_SEMICOL | TC_NEWLINE | TC_EOF | TC_LBRACE);
|
cn->l.n = parse_expr(TC_SEMICOL | TC_NEWLINE | TC_EOF | TC_LBRACE);
|
||||||
if (t_tclass == TC_LBRACE) {
|
if (t_tclass == TC_LBRACE) {
|
||||||
debug_printf_parse("%s: TC_LBRACE\n", __func__);
|
debug_printf_parse("%s: TC_LBRACE\n", __func__);
|
||||||
rollback_token();
|
chain_until_rbrace();
|
||||||
chain_group();
|
|
||||||
} else {
|
} else {
|
||||||
/* no action, assume default "{ print }" */
|
/* no action, assume default "{ print }" */
|
||||||
debug_printf_parse("%s: !TC_LBRACE\n", __func__);
|
debug_printf_parse("%s: !TC_LBRACE\n", __func__);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user