Skip to content

Commit

Permalink
Parse C-variadic functions in type references
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed Aug 2, 2024
1 parent 21915e9 commit 23e4854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/grammars/RustParser.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ private FnParameter_with_recover ::= !(')' | '{' | ';') FnParameter (',' | &')')
private FnParameter_recover ::= !(Pat_first | OuterAttr_first | '...' | ')' | '{' | ';')

LambdaParameter ::= OuterAttr* SimplePat TypeAscription?
AnonParameter ::= OuterAttr* [ RestrictedPat ':' ] TypeReference
AnonParameter ::= OuterAttr* [ RestrictedPat ':' ] (VariadicUpper | TypeReference)
PathParameter ::= OuterAttr* TypeReference !'='

SelfParameter ::= OuterAttr* [ '&' Lifetime? ] mut? self TypeAscription? {
Expand Down

0 comments on commit 23e4854

Please sign in to comment.