0.13.0
版本发布时间: 2020-01-30 18:36:23
ocaml-ppx/ocamlformat最新发布版本:0.26.2(2024-04-18 18:07:29)
CHANGES:
New features
- Add an option
--margin-check
to emit a warning if the formatted output exceeds the margin (#1110) (Guillaume Petiot) - Preserve comment indentation when
wrap-comments
is unset (#1138, #1159) (Jules Aguillon) - Improve error messages (#1147) (Jules Aguillon)
- Display standard output in the emacs plugin even when ocamlformat does not fail (#1189) (Guillaume Petiot)
Removed
- Remove
ocamlformat_reason
(#254, #1185) (Etienne Millon). This tool has never been released to opam, has no known users, and overlaps with whatrefmt
can do. - Remove
ocamlformat-diff
(#1205) (Guillaume Petiot) This tool has never been released to opam, has no known users, and overlaps with whatmerge-fmt
can do.
Packaging
- Work with base v0.13.0 (#1163) (Jules Aguillon)
Bug fixes
- Fix placement of comments just before a '|' (#1203) (Jules Aguillon)
- Fix build version detection when building in the absence of a git root (#1198) (Anil Madhavapeddy)
- Fix wrapping of or-patterns in presence of comments with
break-cases=fit
(#1167) (Jules Aguillon) This also fixes an unstable comment bug in or-patterns - Fix an unstable comment bug in variant declarations (#1108) (Jules Aguillon)
- Fix: break multiline comments (#1122) (Guillaume Petiot)
- Fix: types on named arguments were wrapped incorrectly when preceding comments (#1124) (Guillaume Petiot)
- Fix the indentation produced by max-indent (#1118) (Guillaume Petiot)
- Fix break after Psig_include depending on presence of docstring (#1125) (Guillaume Petiot)
- Remove some calls to if_newline and break_unless_newline and fix break before closing brackets (#1168) (Guillaume Petiot)
- Fix unstable cmt in or-pattern (#1173) (Guillaume Petiot)
- Fix location of comment attached to the underscore of an open record (#1208) (Guillaume Petiot)
- Fix parentheses around optional module parameter (#1212) (Christian Barcenas)
- Fix grouping of horizontally aligned comments (#1209) (Guillaume Petiot)
- Fix dropped comments around module pack expressions (#1214) (Jules Aguillon)
- Fix regression of comment position in list patterns (#1141) (Josh Berdine)
- Fix: adjust definition of Location.is_single_line to reflect margin (#1102) (Josh Berdine)
Documentation
- Fix documentation of option
version-check
(#1135) (Wilfred Hughes) - Fix hint when using
break-separators=after-and-docked
(#1130) (Greta Yorsh)
1、 ocamlformat-0.13.0-2.tbz 358.96KB