forked from ocaml-ppx/ocamlformat
-
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.
Improve comment placement after a
then
or else
Allow comments on the same line as `then` and `else`, as it was the case in 0.26.2. Also, make sure to avoid formatting any code after a comment in that position. This was broken since ocaml-ppx#2507.
- Loading branch information
Showing
25 changed files
with
327 additions
and
112 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
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,7 +1,7 @@ | ||
Warning: tests/break_string_literals.ml:4 exceeds the margin | ||
Warning: tests/break_string_literals.ml:7 exceeds the margin | ||
Warning: tests/break_string_literals.ml:11 exceeds the margin | ||
Warning: tests/break_string_literals.ml:48 exceeds the margin | ||
Warning: tests/break_string_literals.ml:51 exceeds the margin | ||
Warning: tests/break_string_literals.ml:63 exceeds the margin | ||
Warning: tests/break_string_literals.ml:68 exceeds the margin | ||
Warning: tests/break_string_literals.ml:3 exceeds the margin | ||
Warning: tests/break_string_literals.ml:6 exceeds the margin | ||
Warning: tests/break_string_literals.ml:10 exceeds the margin | ||
Warning: tests/break_string_literals.ml:47 exceeds the margin | ||
Warning: tests/break_string_literals.ml:50 exceeds the margin | ||
Warning: tests/break_string_literals.ml:62 exceeds the margin | ||
Warning: tests/break_string_literals.ml:67 exceeds the margin |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Warning: tests/comments.ml:186 exceeds the margin | ||
Warning: tests/comments.ml:190 exceeds the margin | ||
Warning: tests/comments.ml:250 exceeds the margin | ||
Warning: tests/comments.ml:401 exceeds the margin | ||
Warning: tests/comments.ml:433 exceeds the margin | ||
Warning: tests/comments.ml:198 exceeds the margin | ||
Warning: tests/comments.ml:202 exceeds the margin | ||
Warning: tests/comments.ml:262 exceeds the margin | ||
Warning: tests/comments.ml:413 exceeds the margin | ||
Warning: tests/comments.ml:445 exceeds the margin |
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 +1 @@ | ||
Warning: tests/comments.ml:252 exceeds the margin | ||
Warning: tests/comments.ml:264 exceeds the margin |
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
Oops, something went wrong.