summaryrefslogtreecommitdiff
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-02-26 21:39:31 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-02-26 21:39:31 +0200
commit491e95a1d22995973e9d62719d321a623ed22e07 (patch)
treef9dd33a025b61e7838af53bbaf0a2e4f0a82e87f /awkgram.y
parent095574f6fe71432416f5be6756ef882ceb148942 (diff)
parent2b02c5c64a93608c347ffaa312d88d52f93888da (diff)
downloadgawk-491e95a1d22995973e9d62719d321a623ed22e07.tar.gz
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y18
1 files changed, 15 insertions, 3 deletions
diff --git a/awkgram.y b/awkgram.y
index 71e70de5..14520cd1 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1236,11 +1236,23 @@ expression_list
| error
{ $$ = NULL; }
| expression_list error
- { $$ = NULL; }
+ {
+ /*
+ * Returning the expression list instead of NULL lets
+ * snode get a list of arguments that it can count.
+ */
+ $$ = $1;
+ }
| expression_list error exp
- { $$ = NULL; }
+ {
+ /* Ditto */
+ $$ = mk_expression_list($1, $3);
+ }
| expression_list comma error
- { $$ = NULL; }
+ {
+ /* Ditto */
+ $$ = $1;
+ }
;
/* Expressions, not including the comma operator. */