Fix pipe closure after expr

This commit is contained in:
Joshua Warner 2025-01-18 19:40:52 -08:00
parent d42af0b763
commit 300412a4da
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 53 additions and 0 deletions

View file

@ -4123,6 +4123,7 @@ where
"<=" => good!(OperatorOrDef::BinOp(BinOp::LessThanOrEq), 2),
"&&" => good!(OperatorOrDef::BinOp(BinOp::And), 2),
"||" => good!(OperatorOrDef::BinOp(BinOp::Or), 2),
"|" => Err((NoProgress, to_error("|", state.pos()))),
"//" => good!(OperatorOrDef::BinOp(BinOp::DoubleSlash), 2),
"->" => {
// makes no progress, so it does not interfere with `_ if isGood -> ...`