Skip to content

Commit abee119

Browse files
committed
WIP
1 parent 918887e commit abee119

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

lib/Conf.ml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,7 @@ module Formatting = struct
443443
in
444444
Decl.choice ~names ~all ~default ~doc ~kind
445445
(fun conf elt ->
446-
update conf ~f:(fun f -> {f with break_collection_expressions= elt})
447-
)
446+
update conf ~f:(fun f -> {f with break_collection_expressions= elt}) )
448447
(fun conf -> conf.fmt_opts.break_collection_expressions)
449448

450449
let break_colon =
@@ -598,8 +597,7 @@ module Formatting = struct
598597
Decl.choice ~names ~all ~default ~doc ~kind
599598
(fun conf elt ->
600599
update conf ~f:(fun f ->
601-
{f with break_struct= Elt.make Poly.(elt.v = `Force) elt.from} )
602-
)
600+
{f with break_struct= Elt.make Poly.(elt.v = `Force) elt.from} ) )
603601
(fun conf ->
604602
let elt = conf.fmt_opts.break_struct in
605603
if elt.v then Elt.make `Force elt.from
@@ -896,8 +894,7 @@ module Formatting = struct
896894
in
897895
Decl.choice ~names ~all ~default ~doc ~kind
898896
(fun conf elt ->
899-
update conf ~f:(fun f -> {f with indicate_nested_or_patterns= elt})
900-
)
897+
update conf ~f:(fun f -> {f with indicate_nested_or_patterns= elt}) )
901898
(fun conf -> conf.fmt_opts.indicate_nested_or_patterns)
902899

903900
let infix_precedence =
@@ -924,8 +921,7 @@ module Formatting = struct
924921
let names = ["leading-nested-match-parens"] in
925922
Decl.flag ~names ~default ~doc ~kind ~allow_inline:false
926923
(fun conf elt ->
927-
update conf ~f:(fun f -> {f with leading_nested_match_parens= elt})
928-
)
924+
update conf ~f:(fun f -> {f with leading_nested_match_parens= elt}) )
929925
(fun conf -> conf.fmt_opts.leading_nested_match_parens)
930926

931927
let let_and =
@@ -1547,8 +1543,8 @@ let parse_attr {attr_name= {txt; loc= _}; attr_payload; _} =
15471543
| _ when String.is_prefix ~prefix:"ocamlformat." txt ->
15481544
Error
15491545
(`Msg
1550-
(Format.sprintf "Invalid format: Unknown suffix %S"
1551-
(String.chop_prefix_exn ~prefix:"ocamlformat." txt) ) )
1546+
(Format.sprintf "Invalid format: Unknown suffix %S"
1547+
(String.chop_prefix_exn ~prefix:"ocamlformat." txt) ) )
15521548
| _ -> Error `Ignore
15531549

15541550
let update ?(quiet = false) c ({attr_name= {txt; loc}; _} as attr) =

0 commit comments

Comments
 (0)