@@ -1282,8 +1282,7 @@ and fmt_fun_args c args =
12821282 cbox 0
12831283 (wrap " ?(" " )"
12841284 ( fmt_pattern c ~parens: false ~box: true xpat
1285- $ fmt " =@;<1 2>"
1286- $ fmt_expression c xexp ) )
1285+ $ fmt " =@;<1 2>" $ fmt_expression c xexp ) )
12871286 | Val (Optional l , xpat , Some xexp ) ->
12881287 let parens =
12891288 match xpat.ast.ppat_desc with
@@ -1294,8 +1293,7 @@ and fmt_fun_args c args =
12941293 ( str " ?" $ str l.txt
12951294 $ wrap_k (fmt " :@,(" ) (str " )" )
12961295 ( fmt_pattern c ?parens ~box: true xpat
1297- $ fmt " =@;<1 2>"
1298- $ fmt_expression c xexp ) )
1296+ $ fmt " =@;<1 2>" $ fmt_expression c xexp ) )
12991297 | Val ((Labelled _ | Nolabel ), _ , Some _ ) ->
13001298 impossible " not accepted by parser"
13011299 | Newtypes [] -> impossible " not accepted by parser"
@@ -1717,8 +1715,7 @@ and fmt_expression c ?(box = true) ?pro ?epi ?eol ?parens ?(indent_wrap = 0)
17171715 (wrap " [" " ]"
17181716 ( str " %"
17191717 $ hovbox 2
1720- ( fmt_str_loc c name
1721- $ str " fun "
1718+ ( fmt_str_loc c name $ str " fun "
17221719 $ fmt_attributes c ~suf: " " call.pexp_attributes
17231720 $ fmt_fun_args c xargs $ fmt_opt fmt_cstr $ fmt " @ ->"
17241721 )
@@ -1747,8 +1744,7 @@ and fmt_expression c ?(box = true) ?pro ?epi ?eol ?parens ?(indent_wrap = 0)
17471744 (wrap " [" " ]"
17481745 ( str " %"
17491746 $ hovbox 2
1750- ( fmt_str_loc c name
1751- $ str " fun "
1747+ ( fmt_str_loc c name $ str " fun "
17521748 $ fmt_attributes c ~suf: " " retn.pexp_attributes
17531749 $ fmt_fun_args c xargs $ fmt_opt fmt_cstr $ fmt " @ ->"
17541750 )
@@ -1778,8 +1774,7 @@ and fmt_expression c ?(box = true) ?pro ?epi ?eol ?parens ?(indent_wrap = 0)
17781774 hvbox 0
17791775 ( hvbox 0 (fmt_expression c (sub_exp ~ctx r) $ cmts_before)
17801776 $ str " :=" )
1781- $ fmt " @;<1 2>"
1782- $ cmts_after
1777+ $ fmt " @;<1 2>" $ cmts_after
17831778 $ hvbox 2 (fmt_expression c (sub_exp ~ctx v)) ) )
17841779 | Pexp_prefix ({txt = ("~-" | "~-." | "~+" | "~+." ) as op ; loc} , e1 ) ->
17851780 let op =
@@ -2372,8 +2367,7 @@ and fmt_expression c ?(box = true) ?pro ?epi ?eol ?parens ?(indent_wrap = 0)
23722367 $ break 1 (- 2 )
23732368 $ hvbox 0
23742369 ( hvbox 0
2375- ( fmt " with@ "
2376- $ leading_cmt
2370+ ( fmt " with@ " $ leading_cmt
23772371 $ hvbox 0
23782372 ( fmt_pattern c ~pro: (if_newline " | " )
23792373 (sub_pat ~ctx pc_lhs)
@@ -3540,9 +3534,7 @@ and fmt_module_type c ?(rec_ = false) ({ast= mty; _} as xmty) =
35403534 pro=
35413535 Some
35423536 ( Cmts. fmt_before c pmty_loc
3543- $ fmt_if parens " ("
3544- $ str " module type of "
3545- $ pro )
3537+ $ fmt_if parens " (" $ str " module type of " $ pro )
35463538 ; epi= Some epi }
35473539 | _ ->
35483540 { blk with
@@ -3900,17 +3892,14 @@ and fmt_with_constraint c ctx ~pre = function
39003892 | Pwith_type (lid , td ) ->
39013893 fmt_type_declaration ~pre: (pre ^ " type" ) c ~name: lid (sub_td ~ctx td)
39023894 | Pwith_module (m1 , m2 ) ->
3903- str pre
3904- $ str " module "
3905- $ fmt_longident_loc c m1 $ str " = " $ fmt_longident_loc c m2
3895+ str pre $ str " module " $ fmt_longident_loc c m1 $ str " = "
3896+ $ fmt_longident_loc c m2
39063897 | Pwith_typesubst (lid , td ) ->
3907- fmt_type_declaration
3908- ~pre: (pre ^ " type" )
3909- c ~eq: " :=" ~name: lid (sub_td ~ctx td)
3898+ fmt_type_declaration ~pre: (pre ^ " type" ) c ~eq: " :=" ~name: lid
3899+ (sub_td ~ctx td)
39103900 | Pwith_modsubst (m1 , m2 ) ->
3911- str pre
3912- $ str " module "
3913- $ fmt_longident_loc c m1 $ str " := " $ fmt_longident_loc c m2
3901+ str pre $ str " module " $ fmt_longident_loc c m1 $ str " := "
3902+ $ fmt_longident_loc c m2
39143903 | Pwith_modtype (m1 , m2 ) ->
39153904 let m1 = {m1 with txt= Some (str_longident m1.txt)} in
39163905 let m2 = Some (sub_mty ~ctx m2) in
0 commit comments