@@ -280,7 +280,7 @@ let operator_precedence operator =
280280 | "&&" -> 3
281281 | "^" -> 4
282282 | "&" -> 5
283- | "==" | "===" | "<" | ">" | "!=" | "<>" | "!==" | "<=" | ">=" | "|>" -> 6
283+ | "==" | "===" | "<" | ">" | "!=" | "<>" | "!==" | "<=" | ">=" -> 6
284284 | "<<" | ">>" | ">>>" -> 7
285285 | "+" | "+." | "-" | "-." | "++" -> 8
286286 | "*" | "*." | "/" | "/." | "%" -> 9
@@ -317,8 +317,8 @@ let is_unary_bitnot_expression expr =
317317let is_binary_operator operator =
318318 match operator with
319319 | " :=" | " ||" | " &&" | " ==" | " ===" | " <" | " >" | " !=" | " !==" | " <=" | " >="
320- | " |> " | " +" | " +." | " -" | " -." | " ++" | " *" | " *." | " /" | " /." | " **"
321- | "->" | " <>" | "%" | "&" | "^" | "<<" | ">>" | ">>>" ->
320+ | "+" | "+." | "-" | "-." | "++" | "*" | "*." | "/" | "/." | "**" | "-> "
321+ | "<>" | "%" | "&" | "^" | "<<" | ">>" | ">>>" ->
322322 true
323323 | _ -> false
324324
@@ -715,7 +715,7 @@ let is_single_pipe_expr expr =
715715 match expr.pexp_desc with
716716 | Pexp_apply
717717 {
718- funct = {pexp_desc = Pexp_ident {txt = Longident. Lident ( " ->" | " |> " ) }};
718+ funct = {pexp_desc = Pexp_ident {txt = Longident. Lident " ->" }};
719719 args = [(Nolabel , _operand1); (Nolabel , _operand2)];
720720 } ->
721721 true
@@ -724,7 +724,7 @@ let is_single_pipe_expr expr =
724724 match expr.pexp_desc with
725725 | Pexp_apply
726726 {
727- funct = {pexp_desc = Pexp_ident {txt = Longident. Lident ( " ->" | " |> " ) }};
727+ funct = {pexp_desc = Pexp_ident {txt = Longident. Lident " ->" }};
728728 args = [(Nolabel , operand1); (Nolabel , _operand2)];
729729 }
730730 when not (is_pipe_expr operand1) ->
0 commit comments