Add literal semicolon to the grammar of view_item
Both external crate declarations and use declarations need to end with a semicolon.
This commit is contained in:
parent
c3156a8ff4
commit
53cd0bc772
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ mod : [ view_item | item ] * ;
|
|||
#### View items
|
||||
|
||||
```antlr
|
||||
view_item : extern_crate_decl | use_decl ;
|
||||
view_item : extern_crate_decl | use_decl ';' ;
|
||||
```
|
||||
|
||||
##### Extern crate declarations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue