fix(assignment-patterns): allow trailing
This commit is contained in:
parent
97247ce949
commit
945b4155cd
|
@ -17,6 +17,7 @@ pub fn let_(
|
|||
annotation,
|
||||
})
|
||||
.separated_by(just(Token::Comma))
|
||||
.allow_trailing()
|
||||
.at_least(1),
|
||||
)
|
||||
.then(choice((just(Token::Equal), just(Token::LArrow))))
|
||||
|
@ -53,6 +54,7 @@ pub fn expect(
|
|||
annotation,
|
||||
})
|
||||
.separated_by(just(Token::Comma))
|
||||
.allow_trailing()
|
||||
.at_least(1)
|
||||
.then(choice((just(Token::Equal), just(Token::LArrow))))
|
||||
.or_not(),
|
||||
|
|
Loading…
Reference in New Issue