File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 13
13
+ Restore previous functionality for pre-post extension points (#1342 , @jberdine )
14
14
15
15
+ Fix extra break before ` function ` body of a ` fun ` (#1343 , @jberdine )
16
+ Indent further args of anonymous functions (#1440 , @gpetiot )
16
17
17
18
+ Do not clear the emacs ` *compilation* ` buffer on successful reformat (#1350 , @jberdine )
18
19
Original file line number Diff line number Diff line change @@ -1851,10 +1851,12 @@ and fmt_expression c ?(box = true) ?pro ?epi ?eol ?parens ?(indent_wrap = 0)
1851
1851
( fmt_args_grouped e0 e1N $ fmt " @ "
1852
1852
$ fmt_label lbl " :" $ cmts_before
1853
1853
$ hvbox 0
1854
- ( str " (fun "
1855
- $ fmt_attributes c ~key: " @" eN1.pexp_attributes
1856
- ~suf: (str " " )
1857
- $ fmt_fun_args c xargs $ fmt_opt fmt_cstr
1854
+ ( hvbox 2
1855
+ ( fmt " (fun@ "
1856
+ $ fmt_attributes c ~key: " @"
1857
+ eN1.pexp_attributes ~suf: (str " " )
1858
+ $ fmt_fun_args c xargs $ fmt_opt fmt_cstr
1859
+ )
1858
1860
$ fmt " @ ->" ) )
1859
1861
$ fmt
1860
1862
( match xbody.ast.pexp_desc with
Original file line number Diff line number Diff line change @@ -153,9 +153,10 @@ let extend_loc_to_include_attributes t (loc : Location.t)
153
153
else
154
154
let last_loc =
155
155
List. fold l ~init: loc
156
- ~f: (fun (acc : Location.t )
157
- ({attr_name = {loc; _} ; attr_payload = payload ; _} :
158
- Parsetree.attribute )
156
+ ~f: (fun
157
+ (acc : Location.t )
158
+ ({attr_name = {loc; _} ; attr_payload = payload ; _} :
159
+ Parsetree.attribute )
159
160
->
160
161
if loc.loc_ghost then acc
161
162
else
You can’t perform that action at this time.
0 commit comments