Skip to content

Commit d715409

Browse files
committed
Make item sections match item EBNF
`enum_item` appeared in the `item` list but did not have an associated section; `const_item` had a section but did not appear in the list.
1 parent 97d4e76 commit d715409

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/doc/grammar.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
297297

298298
```antlr
299299
item : mod_item | fn_item | type_item | struct_item | enum_item
300-
| static_item | trait_item | impl_item | extern_block ;
300+
| const_item | static_item | trait_item | impl_item | extern_block ;
301301
```
302302

303303
### Type Parameters
@@ -369,6 +369,10 @@ path_item : ident | "mod" ;
369369

370370
**FIXME:** grammar?
371371

372+
### Enumerations
373+
374+
**FIXME:** grammar?
375+
372376
### Constant items
373377

374378
```antlr

0 commit comments

Comments
 (0)