Skip to content

Commit 268f1fb

Browse files
changelog
1 parent 155b1cf commit 268f1fb

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

CHANGES.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@ profile. This started with version 0.26.0.
1010

1111
- Fix dropped comment in `(function _ -> x (* cmt *))` (#2739, @Julow)
1212

13+
### Changed
14+
15+
- allow shortcut `begin end` in `match` cases and `if then else` body. (#2744, @EmileTrotignon)
16+
```ocaml
17+
(* before *)
18+
match () with
19+
| () -> begin
20+
match () with
21+
| () ->
22+
end
23+
end
24+
(* after *)
25+
match () with
26+
| () ->
27+
begin match () with
28+
| () ->
29+
end
30+
end
31+
```
32+
1333
## 0.28.1
1434

1535
### Highlight
@@ -38,7 +58,7 @@ profile. This started with version 0.26.0.
3858
### Added
3959

4060
- Added option `module-indent` option (#2711, @HPRIOR) to control the indentation
41-
of items within modules. This affects modules and signatures. For example,
61+
of items within modules. This affects modules and signatures. For example,
4262
module-indent=4:
4363
```ocaml
4464
module type M = sig
@@ -146,7 +166,7 @@ profile. This started with version 0.26.0.
146166
- Fix a crash where `type%e nonrec t = t` was formatted as `type nonrec%e t = t`,
147167
which is invalid syntax. (#2712, @EmileTrotignon)
148168

149-
- Fix commandline parsing being quadratic in the number of arguments
169+
- Fix commandline parsing being quadratic in the number of arguments
150170
(#2724, @let-def)
151171

152172
- \* Fix `;;` being added after a documentation comment (#2683, @EmileTrotignon)

0 commit comments

Comments
 (0)