Repository navigation
CHANGES:
Highlight
Added
Changed
Fixed
-
Fix dropped comment with
if-then-else = keyword-first(#2853, @Julow) -
Fix closing parenthesis indentation in some expressions and pattern with
indicate-multiline-delimiters = closing-on-separate-line
(#2850, #2851, @Julow) -
Fix dropped parentheses in
1 :: (2 :: [] [@a])(#2849, @Julow) -
Fix dropped comment in
let[@ocamlformat "disable"] x = 42 (* a *)
(#2848, @Julow) -
Fix comment changed on some bad
{% ... %}syntax (#2845, @Julow) -
Fix missing parentheses in
effect A, (Some k)(#2843, @Julow) -
Fix missing parentheses around attributed
let openandlet module
expressions on the left of a sequence (#2826, #2827, @kxc-wraikny, @Don-Yin). -
Fix the indentation of the
inkeyword after a local exception: it is no
longer indented one level deeper than the enclosinglet, matching the
behaviour of local types and modules.
(#2822, #2823, @MisterDA) -
Fix
begin match … end(andbegin if … end) branches: with
if-then-else=fit-or-verticalthematch … withheader no longer splits
over several lines andendis aligned withbegin; and a leading comment
on the body no longer reindents it —beginkeeps the body one indent in
instead of gluing the keyword to the comment.
(#2810, #2815, @MisterDA, @yakobowski) -
Fix indentation of a bare
match/function/trybranch preceded by a
comment withif-then-else=fit-or-vertical: the branch is no longer
indented relative to the comment's end column.
(#2810, @MisterDA) -
Fix formatting oscillation with
if-then-else=fit-or-verticaland
begin...end.
(#2800, @MisterDA) -
Fix instability on long
if-then-elsewithif-then-else=fit-or-vertical
(#2797, @MisterDA) -
Fix
matchinif-then-elsebranches expanding to vertical with
fit-or-vertical(#2798, @MisterDA) -
Fix lexer error on Windows when an Odoc code block contains CRLF line
endings (@hhugo) -
Fix missing parentheses in
(a, ~b:(if .. then .. else ..))(#2811, @Julow) -
Fix configuration in
$XDG_CONFIG_HOMEwas not used when
--enable-outside-detected-projectwas passed (#2816, @torimus) -
* Fix a comment before
inin alet … inbinding forcing an unnecessary
vertical break:let x = v (* comment *) in …is no longer split across
several lines when it otherwise fits. This also fixes a related
non-idempotency. (#2813, @yakobowski)