aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-02-26 21:36:13 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-02-26 21:36:13 +0200
commit2b02c5c64a93608c347ffaa312d88d52f93888da (patch)
treea2259a192b3c83c79cfdf21a2281d101de42a0ef /awkgram.y
parent033a052f4eed4a5d3a7963e91a4844ebc3bebc00 (diff)
downloadegawk-2b02c5c64a93608c347ffaa312d88d52f93888da.tar.gz
egawk-2b02c5c64a93608c347ffaa312d88d52f93888da.tar.bz2
egawk-2b02c5c64a93608c347ffaa312d88d52f93888da.zip
Bug fix for expression list error.
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 dd8cf87f..e9eda944 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1220,11 +1220,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. */