Skip to content

Commit cf32778

Browse files
authored
flambda-backend: Enable ocamlformat for Jane Syntax / language extensions code (#1876)
* Enable and apply ocamlformat * Document the divergence in ocamlformat settings
1 parent 20b32a0 commit cf32778

10 files changed

+1110
-1110
lines changed

parsing/.ocamlformat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Please make a pull request to change this file.
2+
disable=true
3+
# There is an .ocamlformat-enable file in this directory.
4+
# Keep the remainder of this file in sync with other .ocamlformat files in this repo.
5+
assignment-operator=begin-line
6+
cases-exp-indent=2
7+
doc-comments=before
8+
dock-collection-brackets=false
9+
if-then-else=keyword-first
10+
module-item-spacing=sparse
11+
parens-tuple=multi-line-only
12+
sequence-blank-line=compact
13+
space-around-lists=false
14+
space-around-variants=false
15+
type-decl=sparse
16+
version=0.24.1
17+
18+
# The existing comments are hand-formatted and lose a lot of readability
19+
# if we wrap them. We should either convert the comments we care about to
20+
# doc comments, or make this same setting change everywhere.
21+
wrap-comments=false

parsing/.ocamlformat-enable

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jane_syntax.ml
2+
jane_syntax.mli
3+
jane_syntax_parsing.ml
4+
jane_syntax_parsing.mli
5+
jane_asttypes.mli

parsing/jane_asttypes.mli

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
2626
*)
2727

28-
2928
open Asttypes
3029

3130
type global_flag =

0 commit comments

Comments
 (0)