@@ -70,7 +70,7 @@ let conventional_profile from =
7070 ; doc_comments_padding= elt 2
7171 ; doc_comments_tag_only= elt `Default
7272 ; dock_collection_brackets= elt true
73- ; exp_grouping= elt `Parens
73+ ; exp_grouping= elt `Preserve
7474 ; extension_indent= elt 2
7575 ; field_space= elt `Loose
7676 ; function_indent= elt 2
@@ -140,7 +140,7 @@ let ocamlformat_profile from =
140140 ; doc_comments_padding= elt 2
141141 ; doc_comments_tag_only= elt `Default
142142 ; dock_collection_brackets= elt false
143- ; exp_grouping= elt `Parens
143+ ; exp_grouping= elt `Preserve
144144 ; extension_indent= elt 2
145145 ; field_space= elt `Tight
146146 ; function_indent= elt 2
@@ -745,11 +745,11 @@ module Formatting = struct
745745 let doc = " Style of expression grouping." in
746746 let names = [" exp-grouping" ] in
747747 let all =
748- [ Decl.Value. make ~name: " parens" `Parens
749- " $(b,parens) groups expressions using parentheses."
750- ; Decl.Value. make ~name: " preserve" `Preserve
748+ [ Decl.Value. make ~name: " preserve" `Preserve
751749 " $(b,preserve) preserves the original grouping syntax \
752- (parentheses or $(i,begin)/$(i,end))." ]
750+ (parentheses or $(i,begin)/$(i,end))."
751+ ; Decl.Value. make ~name: " parens" `Parens
752+ " $(b,parens) groups expressions using parentheses." ]
753753 in
754754 Decl. choice ~names ~all ~default ~doc ~kind ~allow_inline: false
755755 (fun conf elt -> update conf ~f: (fun f -> {f with exp_grouping= elt}))
0 commit comments