]> Cypherpunks repositories - gostls13.git/commitdiff
allow predefined identifiers (len, etc.) to be exported.
authorRob Pike <r@golang.org>
Wed, 13 Aug 2008 22:24:55 +0000 (15:24 -0700)
committerRob Pike <r@golang.org>
Wed, 13 Aug 2008 22:24:55 +0000 (15:24 -0700)
(they were not accepted as names by the import parser)

R=ken
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=14159
CL=14159

src/cmd/gc/go.y

index 523642dd3da38c93379b9fada4997b5d5c2b8614..08c366422507f6d400f2f37837d341e18477e66c 100644 (file)
@@ -1583,7 +1583,7 @@ hidden_import:
        }
 
 isym:
-       sym '.' sym2
+       sym1 '.' sym2
        {
                $$ = nod(OIMPORT, N, N);
                $$->osym = $1;
@@ -1591,7 +1591,7 @@ isym:
                $$->sym = $3;
                renamepkg($$);
        }
-|      '(' sym ')' sym '.' sym2
+|      '(' sym1 ')' sym1 '.' sym2
        {
                $$ = nod(OIMPORT, N, N);
                $$->osym = $2;
@@ -1609,7 +1609,7 @@ hidden_importsym:
        }
 
 hidden_importfield:
-       sym isym
+       sym1 isym
        {
                $$ = $2;
                $$->fsym = $1;