fix for suffixed without arguments

This commit is contained in:
Luke Boswell 2024-03-24 15:50:47 +11:00
parent 56d91ce74c
commit 73b60113ff
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0

View file

@ -742,7 +742,9 @@ pub fn parse_single_def<'a>(
// Handle the specific case when the first line of an assignment is actually a suffixed statement
match loc_def_expr.value {
Expr::SpaceBefore(
Expr::Suffixed(_)
| Expr::SpaceBefore(Expr::Suffixed(_), _)
| Expr::SpaceBefore(
Expr::Apply(
Loc {
value: Expr::Suffixed(_),