forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak dune file formatting: avoid pure vertical layout when formattin…
…g wrapped lists (ocaml#10892) * format-dune-file: use a hov box instead of a hv box for wrapped lists Signed-off-by: Nicolás Ojeda Bär <[email protected]> Signed-off-by: Marek Kubica <[email protected]> * Add test Signed-off-by: Nicolás Ojeda Bär <[email protected]> Signed-off-by: Marek Kubica <[email protected]> * Accept Signed-off-by: Nicolás Ojeda Bär <[email protected]> Signed-off-by: Marek Kubica <[email protected]> * Add changelog entry Signed-off-by: Marek Kubica <[email protected]> --------- Signed-off-by: Nicolás Ojeda Bär <[email protected]> Signed-off-by: Marek Kubica <[email protected]> Co-authored-by: Marek Kubica <[email protected]>
- Loading branch information
1 parent
ed871ba
commit af95981
Showing
6 changed files
with
54 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Format long lists in s-expressions to fill the line instead of formatting | ||
them in a vertical way (#10892, fixes #10860, @nojb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,8 @@ It builds on its own (with a warning) when lang dune is 3.2 or below: | |
$ dune printenv --root=inner --field flags | ||
Entering directory 'inner' | ||
(flags | ||
(-w | ||
@[email protected]@30..39@[email protected]@[email protected] | ||
-strict-sequence | ||
-strict-formats | ||
-short-paths | ||
-keep-locs)) | ||
(-w @[email protected]@30..39@[email protected]@[email protected] -strict-sequence | ||
-strict-formats -short-paths -keep-locs)) | ||
Leaving directory 'inner' | ||
$ dune build --root=inner | ||
Entering directory 'inner' | ||
|
@@ -41,12 +37,8 @@ Note that in versions of lang dune above 3.2 this warning becomes an error: | |
$ dune printenv --root=inner --field flags | ||
Entering directory 'inner' | ||
(flags | ||
(-w | ||
@[email protected]@30..39@[email protected]@[email protected]@67@69-40 | ||
-strict-sequence | ||
-strict-formats | ||
-short-paths | ||
-keep-locs)) | ||
(-w @[email protected]@30..39@[email protected]@[email protected]@67@69-40 -strict-sequence | ||
-strict-formats -short-paths -keep-locs)) | ||
Leaving directory 'inner' | ||
$ dune build --root=inner | ||
Entering directory 'inner' | ||
|
@@ -68,12 +60,8 @@ Building the outer project works when lang dune is 3.2 or below: | |
$ dune printenv --root=outer --field flags | ||
Entering directory 'outer' | ||
(flags | ||
(-w | ||
@[email protected]@30..39@[email protected]@[email protected] | ||
-strict-sequence | ||
-strict-formats | ||
-short-paths | ||
-keep-locs)) | ||
(-w @[email protected]@30..39@[email protected]@[email protected] -strict-sequence | ||
-strict-formats -short-paths -keep-locs)) | ||
Leaving directory 'outer' | ||
$ dune build --root=outer | ||
|
@@ -89,22 +77,14 @@ But when lang dune is 3.3 or higher the warning becomes an error: | |
$ dune printenv --root=outer --field flags | ||
Entering directory 'outer' | ||
(flags | ||
(-w | ||
@[email protected]@30..39@[email protected]@[email protected]@67@69-40 | ||
-strict-sequence | ||
-strict-formats | ||
-short-paths | ||
-keep-locs)) | ||
(-w @[email protected]@30..39@[email protected]@[email protected]@67@69-40 -strict-sequence | ||
-strict-formats -short-paths -keep-locs)) | ||
Leaving directory 'outer' | ||
$ dune printenv outer/vendored/inner --root=outer --field flags | ||
Entering directory 'outer' | ||
(flags | ||
(-w | ||
@[email protected]@30..39@[email protected]@[email protected]@67@69-40 | ||
-strict-sequence | ||
-strict-formats | ||
-short-paths | ||
-keep-locs)) | ||
(-w @[email protected]@30..39@[email protected]@[email protected]@67@69-40 -strict-sequence | ||
-strict-formats -short-paths -keep-locs)) | ||
Leaving directory 'outer' | ||
$ dune build --root=outer | ||
|