fix(assignment-patterns): allow trailing

This commit is contained in:
rvcas 2024-03-11 18:57:21 -04:00 committed by Lucas
parent 97247ce949
commit 945b4155cd
1 changed files with 2 additions and 0 deletions

View File

@ -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(),