File tree Expand file tree Collapse file tree 1 file changed +39
-2
lines changed
Expand file tree Collapse file tree 1 file changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,43 @@ profile. This started with version 0.26.0.
1010
1111- Fix dropped comment in ` (function _ -> x (* cmt *)) ` (#2739 , @Julow )
1212
13+ - ` cases-matching-exp-indent=compact ` does not impact ` begin end ` nodes that
14+ don't have a match inside. (#2742 , @EmileTrotignon )
15+ ``` ocaml
16+ (* before *)
17+ begin match () with
18+ | () -> begin
19+ f x
20+ end
21+ end
22+ (* after *)
23+ begin match () with
24+ | () -> begin
25+ f x
26+ end
27+ end
28+ ```
29+
30+
31+ ### Changed
32+
33+ - indentation of the ` end ` keyword in a match-case is now always at least 2. (#2742 , @EmileTrotignon )
34+ ``` ocaml
35+ (* before *)
36+ begin match () with
37+ | () -> begin
38+ match () with
39+ | () -> ()
40+ end
41+ end
42+ (* after *)
43+ begin match () with
44+ | () -> begin
45+ match () with
46+ | () -> ()
47+ end
48+ end
49+ ```
1350## 0.28.1
1451
1552### Highlight
@@ -38,7 +75,7 @@ profile. This started with version 0.26.0.
3875### Added
3976
4077- Added option ` module-indent ` option (#2711 , @HPRIOR ) to control the indentation
41- of items within modules. This affects modules and signatures. For example,
78+ of items within modules. This affects modules and signatures. For example,
4279 module-indent=4:
4380 ``` ocaml
4481 module type M = sig
@@ -146,7 +183,7 @@ profile. This started with version 0.26.0.
146183- Fix a crash where ` type%e nonrec t = t ` was formatted as ` type nonrec%e t = t ` ,
147184 which is invalid syntax. (#2712 , @EmileTrotignon )
148185
149- - Fix commandline parsing being quadratic in the number of arguments
186+ - Fix commandline parsing being quadratic in the number of arguments
150187 (#2724 , @let-def )
151188
152189- \* Fix ` ;; ` being added after a documentation comment (#2683 , @EmileTrotignon )
You can’t perform that action at this time.
0 commit comments