mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Finalize visibility grammar
This commit is contained in:
parent
3dce34aaf8
commit
ceca94536c
1 changed files with 8 additions and 3 deletions
|
@ -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…
Reference in a new issue