Added optional pub to use_decl EBNF.

This commit is contained in:
Jesse Jones 2012-11-18 18:28:05 -08:00
parent 76712476c2
commit ca332a68fa

View File

@ -798,7 +798,7 @@ extern mod ruststd (name = "std"); // linking to 'std' under another name
##### Use declarations
~~~~~~~~ {.ebnf .gram}
use_decl : "use" ident [ '=' path
use_decl : "pub"? "use" ident [ '=' path
| "::" path_glob ] ;
path_glob : ident [ "::" path_glob ] ?