Skip to content

Commit

Permalink
Allow empty returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Oct 28, 2018
1 parent ae8ae0f commit 7f8337d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ named!(flow_stmt<StrSpan, Statement>,
| keyword!("continue") => { |_| Statement::Continue }
| preceded!(
tuple!(keyword!("return"), spaces_nonl),
return_error!(ws_nonl!(call!(ExpressionParser::<NewlinesAreNotSpaces>::testlist_star_expr)))
ws_nonl!(call!(ExpressionParser::<NewlinesAreNotSpaces>::testlist_star_expr))
) => { |e| Statement::Return(e) }
| raise_stmt
| call!(ExpressionParser::<NewlinesAreNotSpaces>::yield_expr)
Expand Down

0 comments on commit 7f8337d

Please sign in to comment.