mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 11:55:04 +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 =
|
LifetimeParam =
|
||||||
Attr* 'lifetime'
|
Attr* 'lifetime'
|
||||||
|
|
||||||
|
Visibility =
|
||||||
|
'pub' ('('
|
||||||
|
'super'
|
||||||
|
| 'self'
|
||||||
|
| 'crate'
|
||||||
|
| 'in' Path
|
||||||
|
')')?
|
||||||
|
|
||||||
ParenType =
|
ParenType =
|
||||||
'(' TypeRef ')'
|
'(' TypeRef ')'
|
||||||
|
|
||||||
|
@ -391,9 +399,6 @@ TupleStructPat =
|
||||||
TuplePat =
|
TuplePat =
|
||||||
'(' args:Pat* ')'
|
'(' args:Pat* ')'
|
||||||
|
|
||||||
Visibility =
|
|
||||||
'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')?
|
|
||||||
|
|
||||||
Name =
|
Name =
|
||||||
'ident'
|
'ident'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue