Fix GenericArgs grammar
This commit is contained in:
@@ -8,12 +8,13 @@ PathSegment =
|
||||
| '<' PathType ('as' PathType)? '>'
|
||||
|
||||
GenericArgList =
|
||||
'::'? '<'
|
||||
TypeArg*
|
||||
LifetimeArg*
|
||||
AssocTypeArg*
|
||||
ConstArg*
|
||||
'>'
|
||||
'::'? '<' (GenericArg (',' GenericArg)* ','?)? '>'
|
||||
|
||||
GenericArg =
|
||||
TypeArg
|
||||
| AssocTypeArg
|
||||
| LifetimeArg
|
||||
| ConstArg
|
||||
|
||||
TypeArg =
|
||||
Type
|
||||
@@ -27,7 +28,6 @@ LifetimeArg =
|
||||
ConstArg =
|
||||
Literal | BlockExpr BlockExpr
|
||||
|
||||
|
||||
SourceFile =
|
||||
'shebang'?
|
||||
Attr*
|
||||
|
||||
Reference in New Issue
Block a user