Skip to content

Commit

Permalink
flambda-backend: Enable ocamlformat for Jane Syntax / language extens…
Browse files Browse the repository at this point in the history
…ions code (#1876)

* Enable and apply ocamlformat

* Document the divergence in ocamlformat settings
  • Loading branch information
ncik-roberts authored Sep 28, 2023
1 parent 20b32a0 commit cf32778
Show file tree
Hide file tree
Showing 10 changed files with 1,110 additions and 1,110 deletions.
21 changes: 21 additions & 0 deletions parsing/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Please make a pull request to change this file.
disable=true
# There is an .ocamlformat-enable file in this directory.
# Keep the remainder of this file in sync with other .ocamlformat files in this repo.
assignment-operator=begin-line
cases-exp-indent=2
doc-comments=before
dock-collection-brackets=false
if-then-else=keyword-first
module-item-spacing=sparse
parens-tuple=multi-line-only
sequence-blank-line=compact
space-around-lists=false
space-around-variants=false
type-decl=sparse
version=0.24.1

# The existing comments are hand-formatted and lose a lot of readability
# if we wrap them. We should either convert the comments we care about to
# doc comments, or make this same setting change everywhere.
wrap-comments=false
5 changes: 5 additions & 0 deletions parsing/.ocamlformat-enable
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jane_syntax.ml
jane_syntax.mli
jane_syntax_parsing.ml
jane_syntax_parsing.mli
jane_asttypes.mli
1 change: 0 additions & 1 deletion parsing/jane_asttypes.mli
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*)


open Asttypes

type global_flag =
Expand Down
Loading

0 comments on commit cf32778

Please sign in to comment.