allow predefined identifiers (len, etc.) to be exported.

(they were not accepted as names by the import parser)

R=ken
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=14159
CL=14159
This commit is contained in:
Rob Pike 2008-08-13 15:24:55 -07:00
parent 3aecf2ed07
commit b59b551be7
1 changed files with 3 additions and 3 deletions

View 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;