File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ extern mod complicated_mod = "some-file/in/the-rust/path";
788
788
##### Use declarations
789
789
790
790
~~~~~~~~ {.ebnf .gram}
791
- use_decl : "pub"? "use" ident [ '=' path
791
+ use_decl : "pub" ? "use" ident [ '=' path
792
792
| "::" path_glob ] ;
793
793
794
794
path_glob : ident [ "::" path_glob ] ?
@@ -1920,7 +1920,7 @@ it is automatically dereferenced to make the field access possible.
1920
1920
### Vector expressions
1921
1921
1922
1922
~~~~~~~~ {.ebnf .gram}
1923
- vec_expr : '[' "mut"? vec_elems? ']'
1923
+ vec_expr : '[' "mut" ? vec_elems? ']'
1924
1924
1925
1925
vec_elems : [expr [',' expr]*] | [expr ',' ".." expr]
1926
1926
~~~~~~~~
Original file line number Diff line number Diff line change 93
93
94
94
"//" : "linecomment" ,
95
95
"/*" : "openblockcomment" ,
96
- "*/" : "closeblockcomment"
96
+ "*/" : "closeblockcomment" ,
97
+ "macro_rules" : "macro_rules" ,
98
+ "=>" : "eg" ,
99
+ ".." : "dotdot" ,
100
+ "," : "comma"
97
101
}
98
102
99
103
lines = []
You can’t perform that action at this time.
0 commit comments