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

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