Finalize visibility grammar
This commit is contained in:
parent
3dce34aaf8
commit
ceca94536c
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user