Commit b59b551b authored by Rob Pike's avatar Rob Pike

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
parent 3aecf2ed
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment