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