]> Cypherpunks repositories - gostls13.git/commitdiff
simplify comma code per ken's suggestion
authorRuss Cox <rsc@golang.org>
Wed, 15 Oct 2008 01:47:24 +0000 (18:47 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 15 Oct 2008 01:47:24 +0000 (18:47 -0700)
R=ken
OCL=17164
CL=17164

src/cmd/gc/go.y

index 25df8d3050d4a74ceef983b57984fa946b142df1..f08421b5d43b6e991308f548557e6043054ca9c9 100644 (file)
@@ -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);
        }