}
}};
}
+
+// #2560
+macro_rules! binary {
+ ($_self:ident, $expr:expr, $lhs:expr, $func:ident) => {
+ while $_self.matched($expr) {
+ let op = $_self.get_binary_op()?;
+
+ let rhs = Box::new($_self.$func()?);
+
+ $lhs = Spanned {
+ span: $lhs.get_span().to(rhs.get_span()),
+ value: Expression::Binary {
+ lhs: Box::new($lhs),
+ op,
+ rhs,
+ },
+ }
+ }
+ };
+}