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: ...@@ -1583,7 +1583,7 @@ hidden_import:
} }
isym: isym:
sym '.' sym2 sym1 '.' sym2
{ {
$$ = nod(OIMPORT, N, N); $$ = nod(OIMPORT, N, N);
$$->osym = $1; $$->osym = $1;
...@@ -1591,7 +1591,7 @@ isym: ...@@ -1591,7 +1591,7 @@ isym:
$$->sym = $3; $$->sym = $3;
renamepkg($$); renamepkg($$);
} }
| '(' sym ')' sym '.' sym2 | '(' sym1 ')' sym1 '.' sym2
{ {
$$ = nod(OIMPORT, N, N); $$ = nod(OIMPORT, N, N);
$$->osym = $2; $$->osym = $2;
...@@ -1609,7 +1609,7 @@ hidden_importsym: ...@@ -1609,7 +1609,7 @@ hidden_importsym:
} }
hidden_importfield: hidden_importfield:
sym isym sym1 isym
{ {
$$ = $2; $$ = $2;
$$->fsym = $1; $$->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