We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daab04c commit 6298c3dCopy full SHA for 6298c3d
1 file changed
rusty_parser/src/expr/binary_expression.rs
@@ -44,16 +44,11 @@ fn expr_after_binary_operator()
44
// boxed breaks apart the recursive type evaluation
45
IifParser::new(
46
// the previous operator is a keyword op, must have whitespace or parenthesis
47
- ws_expr_pos_p()
48
- .boxed()
49
- .or_expected("expression after operator"),
+ ws_expr_pos_p().boxed(),
50
// the previous operator is a symbol, whitespace is optional
51
- lead_opt_ws(
52
- expression_pos_p()
53
54
55
- ),
+ lead_opt_ws(expression_pos_p().boxed()),
56
)
+ .or_expected("expression after operator")
57
}
58
59
fn non_bin_expr() -> impl Parser<StringView, Output = ExpressionPos, Error = ParserError> {
0 commit comments