From 4248607ffe8aeff628bc692d53c0acf8aa5bec3a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 14 Oct 2008 18:47:24 -0700 Subject: [PATCH] simplify comma code per ken's suggestion R=ken OCL=17164 CL=17164 --- src/cmd/gc/go.y | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index 25df8d3050d..f08421b5d43 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -1607,19 +1607,11 @@ braced_keyexpr_list: { $$ = N; } -| keyval_list_r +| keyval_list_r ocomma { $$ = rev($1); } -| keyval_list_r ',' - { - $$ = rev($1); - } -| expr_list_r - { - $$ = rev($1); - } -| expr_list_r ',' +| expr_list_r ocomma { $$ = rev($1); }