-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from Leonidas-from-XIV/no-semi-semi-deprecation
Undo the `;;` deprecation
- Loading branch information
Showing
9 changed files
with
8 additions
and
69 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
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
9 changes: 3 additions & 6 deletions
9
test/bin/mdx-test/misc/inserting-double-semicolon/test-case.expected
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,14 +1,11 @@ | ||
`;;` is not mandatory at the end of toplevel phrases but will be inserted | ||
automatically in the corrected file. Also, a warning will be emitted. | ||
automatically. | ||
|
||
```ocaml | ||
# let x = 3;; | ||
# let x = 3 | ||
val x : int = 3 | ||
# let f = function | ||
| 0 -> 1 | ||
| n -> n-1;; | ||
| n -> n-1 | ||
val f : int -> int = <fun> | ||
``` | ||
Warning: OCaml toplevel block without trailing ;; detected in file 'test-case.md'. | ||
Non-semicolon terminated phrases are deprecated. | ||
In MDX 3.0 support for toplevel blocks without ;; will be removed. |
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 was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/bin/mdx-test/misc/missing-double-semicolon/test-case.expected
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.