Tags: facebook-github-bot/ocamlformat
Tags
Release 0.19.0 CHANGES: + Fix formatting of odoc tags: the argument should be on the same line, indent description that wraps (ocaml-ppx#1634, ocaml-ppx#1635, @gpetiot) + Consistently format let bindings and monadic let bindings, do not drop comments before monadic bindings (ocaml-ppx#1636, @gpetiot) + Fix dropped comments attached to pattern constrained by polynewtype (ocaml-ppx#1645, @gpetiot) + Fix comment attachment on infix operators (ocaml-ppx#1643, @gpetiot) + Add missing spaces inside begin-end delimiting an ite branch (ocaml-ppx#1646, @gpetiot) + Add missing parens around function at RHS of infix op (ocaml-ppx#1642, @gpetiot) + Preserve begin-end keywords delimiting match cases (ocaml-ppx#1651, @gpetiot) + Fix alignment of closing paren on separate line for anonymous functions (ocaml-ppx#1649, @gpetiot) + Preserve begin-end keywords around infix operators (ocaml-ppx#1652, @gpetiot) + Preserve `begin%ext` syntax for infix opererator expressions (ocaml-ppx#1653, @gpetiot) + Consistently format comments attached to let-and bindings located at toplevel (ocaml-ppx#1663, @gpetiot) + Remove double parens around a functor in a module application (ocaml-ppx#1681, @gpetiot) + Improve breaking of comments to avoid violating the margin (ocaml-ppx#1676, @jberdine) + Fix parentheses around successive unary operations (ocaml-ppx#1696, @gpetiot) + Add missing break between pattern and attribute (ocaml-ppx#1711, @gpetiot) + Add missing parentheses around expression having attributes or comments inside a shorthand let-open clause (ocaml-ppx#1708, @gpetiot) + Do not consider leading star '*' when checking the diff of doc comments (ocaml-ppx#1712, @hhugo) + Fix formatting of multiline non-wrapping comments (ocaml-ppx#1723, @gpetiot) + Improve the diff of unstable docstrings displayed in error messages (ocaml-ppx#1654, @gpetiot) + Use UTF8 length of strings, not only in wrapped comments (ocaml-ppx#1673, @jberdine) + Improve position of `;;` tokens (ocaml-ppx#1688, @gpetiot) + Depend on `odoc-parser` instead of `odoc` (ocaml-ppx#1683, ocaml-ppx#1713, @kit-ty-kate, @jonludlam, @Julow) The parser from odoc has been split from the main odoc package and put into its own package, `odoc-parser`. + Revert infix-form list formatting to pre-0.17.0 (ocaml-ppx#1717, @gpetiot) + Implement OCaml 4.13 features - Named existentials in pattern-matching (ocaml#9584) - Let-punning (ocaml#10013) - Module type substitutions (ocaml#10133) (ocaml-ppx#1680, @gpetiot) + Emacs integration (disabled for ocamlformat < 0.19.0): - Indent a line or a region with ocamlformat when pressing <TAB> - Break the line and reindent the cursor when pressing <ENTER> (ocaml-ppx#1639, ocaml-ppx#1685, @gpetiot) (ocaml-ppx#1687, @bcc32) + Add 'line-endings=lf|crlf' option to specify the line endings used in the formatted output. (ocaml-ppx#1703, @nojb) + A script `tools/build-mingw64.sh` is provided to build a native Windows binary of `ocamlformat` using `mingw64` toolchain under Cygwin.
PreviousNext