Finalize visibility grammar

This commit is contained in:
Aleksey Kladov 2020-07-30 18:55:49 +02:00
parent 3dce34aaf8
commit ceca94536c

View file

@ -173,6 +173,14 @@ ConstParam =
LifetimeParam =
Attr* 'lifetime'
Visibility =
'pub' ('('
'super'
| 'self'
| 'crate'
| 'in' Path
')')?
ParenType =
'(' TypeRef ')'
@ -391,9 +399,6 @@ TupleStructPat =
TuplePat =
'(' args:Pat* ')'
Visibility =
'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')?
Name =
'ident'