diff options
| author | Jan Kobler <eng1@koblersystems.de> | 2013-08-17 02:11:19 +0200 |
|---|---|---|
| committer | Jan Kobler <eng1@koblersystems.de> | 2013-08-18 08:00:23 +0200 |
| commit | c5c4a63aeb1dd59c6fc944bb9ac51dca550ec772 (patch) | |
| tree | 8adb3d03ee0839e7982c69d00395a4dc163744ba | |
| parent | 87761c1f99805006e7c47933271b76ef631e400a (diff) | |
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>
| -rw-r--r-- | doc/rust.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md index d285253ffe2..aae54bdb839 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -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] ~~~~~~~~ |
