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.
dune unstable-fmt: use boxes (ocaml#1608)
* dune unstable-fmt: put the paren at end of line Signed-off-by: Etienne Millon <[email protected]> * Add failing test when formatting nested lists Signed-off-by: Etienne Millon <[email protected]> * Fix indent in nested list Signed-off-by: Etienne Millon <[email protected]> * Wrap some lists using boxes Closes ocaml#1153 Signed-off-by: Etienne Millon <[email protected]> * Use boxes for indent Signed-off-by: Etienne Millon <[email protected]> * Add a test for multi-line strings Signed-off-by: Etienne Millon <[email protected]> * Add changelog entry Signed-off-by: Etienne Millon <[email protected]> * Fix JS tests with newer js_of_ocaml Signed-off-by: Etienne Millon <[email protected]>
- Loading branch information
Showing
6 changed files
with
74 additions
and
59 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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(echo "\> multi | ||
"\> line | ||
"\> string | ||
) | ||
|
||
(echo "\ | ||
multi | ||
line | ||
string | ||
") |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module Js = Js_of_ocaml.Js | ||
|
||
let _ = | ||
print_endline X.buy_it; | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
module Js = Js_of_ocaml.Js | ||
|
||
let buy_it = "buy " ^ Y.it | ||
let print x = Js_of_ocaml.Js.to_string x##.name | ||
let print x = Js.to_string x##.name | ||
external external_print : Js.js_string Js.t -> unit = "jsPrint" |