aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2011-08-09 12:23:27 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2011-08-09 12:23:27 +0000
commit9cb3faa6600faf227157090f70a6ec850ac1ef75 (patch)
treea1dbab506adcf1ed332e9b7f6440e5df5b5ab3ee /awkgram.y
parente2f76e526c9828f75cb69d51857e9efd1ed0684f (diff)
downloadsrc-vendor/one-true-awk/20110807.tar.gz
src-vendor/one-true-awk/20110807.zip
Vendor import of bwk's 7-Aug-2011 release.vendor/one-true-awk/20110807
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/awkgram.y b/awkgram.y
index 91b62571b8a9..5b5c461b3eed 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -174,8 +174,8 @@ pa_pat:
pa_stat:
pa_pat { $$ = stat2(PASTAT, $1, stat2(PRINT, rectonode(), NIL)); }
| pa_pat lbrace stmtlist '}' { $$ = stat2(PASTAT, $1, $3); }
- | pa_pat ',' pa_pat { $$ = pa2stat($1, $3, stat2(PRINT, rectonode(), NIL)); }
- | pa_pat ',' pa_pat lbrace stmtlist '}' { $$ = pa2stat($1, $3, $5); }
+ | pa_pat ',' opt_nl pa_pat { $$ = pa2stat($1, $4, stat2(PRINT, rectonode(), NIL)); }
+ | pa_pat ',' opt_nl pa_pat lbrace stmtlist '}' { $$ = pa2stat($1, $4, $6); }
| lbrace stmtlist '}' { $$ = stat2(PASTAT, NIL, $2); }
| XBEGIN lbrace stmtlist '}'
{ beginloc = linkum(beginloc, $3); $$ = 0; }