mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-21 19:04:24 +00:00
fix: Add trait alias grammar to rust.ungram
This commit is contained in:
parent
add85397ae
commit
6674bd898e
6 changed files with 37 additions and 22 deletions
|
@ -239,8 +239,11 @@ Static =
|
|||
Trait =
|
||||
Attr* Visibility?
|
||||
'unsafe'? 'auto'?
|
||||
'trait' Name GenericParamList? (':' TypeBoundList?)? WhereClause?
|
||||
AssocItemList
|
||||
'trait' Name GenericParamList?
|
||||
(
|
||||
(':' TypeBoundList?)? WhereClause? AssocItemList
|
||||
| '=' TypeBoundList? WhereClause? ';'
|
||||
)
|
||||
|
||||
AssocItemList =
|
||||
'{' Attr* AssocItem* '}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue