Organisationsocaml-ppxocamlformatbranch/mainBuild History

Build History for branch/main

Builds (27)
Improve the placement of begin..end attributes (#2551) * Parenthese begin..end with attributes This fixes a AST changed bug by adding parentheses. * Improve the placement of begin..end attributes Render 'begin [@attr] .. end' instead of 'begin .. end [@attr]'. This removes parentheses. * Update changes
b6867b
Fix doc-comments '*)' exceeding the margin (#2550) This change applies to doc-comments and regular comments parsed as doc-comments.
099d6e
Backport changelog from the 0.26 branch (#2548)
356ec7
Fix comments around underscore in record patterns (#2540) Remove the added empty line and the extraneous space with `break-separator=after`. Fix unstable comment with `break-separator=before`.
6e5a1e
Fix dropped comments before begin-end case (#2541)
49af11
Fix missing parenthesis after try..with (#2537) When indicate-multiline-delimiters=closing-on-separate-line, the closing parenthesis at the end of a try..with expression is missing since #2528.
54fff6
Simplify representation of class field values and methods (#2529)
6ce00b
Add object.ml.ref (#2532)
8db3e2
Check dune fmt in the github actions (#2530)
57d9a1
Preserve position of attributes on structure items (#2247) * Add `ext_attrs` to: include statements open statements classes type declarations let bindings `value_description` type extensions exceptions * Fixes a bug where, in signatures, ```ocaml type%foo t exception%foo X ``` was formatted as-is, but ```ocaml type t exception X ``` resulted in ```ocaml type t exception X ``` This was because for the first example, the "line-break-algorithm" (found in `Ast.Signature_item.allow_adjacent`), was making its decision as if the code to printed was : ```ocaml [%%foo type t] [%%foo exception X] ``` We know have more information in our AST which allows us to make a difference between `type%foo t` and `[%%foo type t]`.
b10d76
Removes format syntax (#2528) This is a big refactoring that completely removes format syntax such as `"@;<1000 -2>" from ocamlformat. Instead, documented combinators are used. * Remove Fmt.s * remove _k suffix * Remove flush
910dbf
use `force_break` value instead of `fmt "@;<1000 0>"` (#2526)
933870
Keep the location of 'in' keywords in local bindings (#2242) * add the location of "in" to fix #2096 * Improve handling of empty line after 'in' * add loc to let in in class Co-authored-by: Guillaume Petiot <guillaume@tarides.com>
137e61
Fixes a bug in class type when trying to disable ocamlformat (#2525)
169c48
Support Ptyp_open from OCaml 5.2 (#2519) * Backport Ptyp_open to parser-extended * Backport Ptyp_open to parser-standard
8c20da
Undo let-bindings normalizations, carry out the args to remove the sugaring (#2523)
26cffc
Expose let_binding_deindent_fun flag (#2521)
8d63ea
Fix formatting of type vars in GADT constructors (#2518) The formatting of type variables was short circuited when the constructor contained no argument.
b8b095
Bug fix: `Pexp_constraint` with attributes should get parenthesized (#2513) Fix a bug in formatting f ((1 : int) [@a]) where the outer pair of parentheses gets stripped. * Tweak Ast rules to avoid parentheses in records Avoid the extra parentheses in this case: {((a : b)) with c} * Add missing Ast rule for override fields Avoid parentheses in this case: {<x = (x [@a])>}
7db948
Add args to binding_ops (#2516)
e77f73
Cleanup Let_binding.split_annot (#2515)
9fae8a
Distinguish fun_param for expr/class, unify parsing of val/newtype fun_param (#2503)
4826c4
Backport 5.2 compilerlibs changes (#2510) * Update vendored compilerlibs for OCaml 5.2 Co-authored-by: Jules Aguillon <jules@j3s.fr>
37d9f6
Improvements to ocp-indent-compat and the Janestreet profile (#2314) The following changes apply when ocp-indent-compat is enabled: - Indent extensions and attributes containing structure items according to `stritem_extension_indent`. - Consistent indentation of regular and polymorphic variants types in type exprs, patterns and expressions. - Don't align pack expressions. - Consistent indentation of methods. - Tweak indentation of comments in records. - Tweak indentation of fun arguments.
cb9b35
Avoid alignment in if-then-else (#2511) * Add missing break after if-then-else keyword * Fix box within if-then-else branch Co-authored-by: Guillaume Petiot <guillaume@tarides.com>
aa2ec8
Fix unwanted alignment after comment (#2507) This removes the alignment in expressions like: let _ = try_with (fun () -> (* comment before *) a ; b (* after b *) ) Co-authored-by: Guillaume Petiot <guillaume@tarides.com>
841824
Fix unstable comment around docked functor arg (#2506)
9534fe