Skip to content

Commit

Permalink
insert space
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jankobler committed Aug 18, 2013
1 parent 87761c1 commit c5c4a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/rust.md
Expand Up @@ -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 ] ?
Expand Down Expand Up @@ -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]
~~~~~~~~
Expand Down

5 comments on commit c5c4a63

@bors
Copy link
Contributor

@bors bors commented on c5c4a63 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from catamorphism
at jankobler@c5c4a63

@bors
Copy link
Contributor

@bors bors commented on c5c4a63 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging jankobler/rust/extract-grammar-01 = c5c4a63 into auto

@bors
Copy link
Contributor

@bors bors commented on c5c4a63 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jankobler/rust/extract-grammar-01 = c5c4a63 merged ok, testing candidate = c87d798

@bors
Copy link
Contributor

@bors bors commented on c5c4a63 Aug 21, 2013

@bors
Copy link
Contributor

@bors bors commented on c5c4a63 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = c87d798

Please sign in to comment.