diff options
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1094,7 +1094,7 @@ non_compound_stmt { if (! in_function) yyerror(_("`return' used outside function context")); - } opt_exp statement_term { + } opt_fcall_exp statement_term { if (called_from_eval) $1->opcode = Op_K_return_from_eval; @@ -1614,6 +1614,12 @@ fcall_exp | typed_regexp { $$ = list_create($1); } ; +opt_fcall_exp + : /* empty */ + { $$ = NULL; } + | fcall_exp { $$ = $1; } + ; + /* Expressions, not including the comma operator. */ exp : variable assign_operator exp %prec ASSIGNOP |