insert space

in the rust grammar

to avoid error messages like this:

  Exception: non-alpha apparent keyword: pub"

when using extract_grammar.py:

python2.7 src/etc/extract_grammar.py <doc/rust.md

Signed-off-by: Jan Kobler <eng1@koblersystems.de>
This commit is contained in:
Jan Kobler 2013-08-17 02:11:19 +02:00
parent 87761c1f99
commit c5c4a63aeb

View File

@ -788,7 +788,7 @@ extern mod complicated_mod = "some-file/in/the-rust/path";
##### Use declarations
~~~~~~~~ {.ebnf .gram}
use_decl : "pub"? "use" ident [ '=' path
use_decl : "pub" ? "use" ident [ '=' path
| "::" path_glob ] ;
path_glob : ident [ "::" path_glob ] ?
@ -1920,7 +1920,7 @@ it is automatically derferenced to make the field access possible.
### Vector expressions
~~~~~~~~{.ebnf .gram}
vec_expr : '[' "mut"? vec_elems? ']'
vec_expr : '[' "mut" ? vec_elems? ']'
vec_elems : [expr [',' expr]*] | [expr ',' ".." expr]
~~~~~~~~