File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1646,7 +1646,7 @@ and fmt_function ?(last_arg = false) ?force_closing_paren ~ctx ~ctx0 ?pro
1646
1646
let pro =
1647
1647
wrap_intro
1648
1648
( pro_outer
1649
- $ hvbox_if has_cmts_outer 0
1649
+ $ hvbox_if has_cmts_outer 0
1650
1650
( cmts_outer
1651
1651
$ Params.Exp. box_fun_decl ~ctx0 c.conf
1652
1652
( pro_inner $ fmt_label label label_sep $ cmts_inner
Original file line number Diff line number Diff line change @@ -320,11 +320,13 @@ module Exp = struct
320
320
if parens then false
321
321
else
322
322
match ctx0 with Exp {pexp_desc = Pexp_infix _ ; _} -> false | _ -> true
323
+
323
324
let function_inner_pro ~has_cmts_outer ~ctx0 =
324
325
if has_cmts_outer then false
325
326
else
326
327
match ctx0 with
327
- | Str _ | Lb _ | Exp {pexp_desc = Pexp_ifthenelse _ | Pexp_let _ ; _} -> false
328
+ | Str _ | Lb _ | Exp {pexp_desc = Pexp_ifthenelse _ | Pexp_let _ ; _} ->
329
+ false
328
330
| _ -> true
329
331
end
330
332
You can’t perform that action at this time.
0 commit comments