File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
304
304
## Items
305
305
306
306
``` antlr
307
- item : mod_item | fn_item | type_item | struct_item | enum_item
307
+ item : vis ? mod_item | fn_item | type_item | struct_item | enum_item
308
308
| const_item | static_item | trait_item | impl_item | extern_block ;
309
309
```
310
310
@@ -335,8 +335,8 @@ crate_name: ident | ( ident "as" ident )
335
335
##### Use declarations
336
336
337
337
``` antlr
338
- use_decl : "pub" ? "use" [ path "as" ident
339
- | path_glob ] ;
338
+ use_decl : vis ? "use" [ path "as" ident
339
+ | path_glob ] ;
340
340
341
341
path_glob : ident [ "::" [ path_glob
342
342
| '*' ] ] ?
@@ -414,8 +414,9 @@ extern_block : [ foreign_fn ] * ;
414
414
415
415
## Visibility and Privacy
416
416
417
- ** FIXME:** grammar?
418
-
417
+ ``` antlr
418
+ vis : "pub" ;
419
+ ```
419
420
### Re-exporting and Visibility
420
421
421
422
** FIXME:** grammar?
You can’t perform that action at this time.
0 commit comments