mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Allow parsing if
as part of the right-hand-side of a binary expression
This commit is contained in:
parent
c02eaf7561
commit
b1e3913041
4 changed files with 41 additions and 3 deletions
|
@ -196,6 +196,7 @@ fn parse_loc_term_or_underscore<'a>(
|
|||
) -> ParseResult<'a, Loc<Expr<'a>>, EExpr<'a>> {
|
||||
one_of!(
|
||||
loc_expr_in_parens_etc_help(min_indent),
|
||||
loc!(specialize(EExpr::If, if_expr_help(min_indent, options))),
|
||||
loc!(specialize(EExpr::Str, string_literal_help())),
|
||||
loc!(specialize(EExpr::SingleQuote, single_quote_literal_help())),
|
||||
loc!(specialize(EExpr::Number, positive_number_literal_help())),
|
||||
|
@ -1509,8 +1510,8 @@ fn parse_expr_operator<'a>(
|
|||
}
|
||||
}
|
||||
}
|
||||
Err((NoProgress, _, _)) => {
|
||||
todo!()
|
||||
Err((NoProgress, expr, e)) => {
|
||||
todo!("{:?} {:?}", expr, e)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue