forked from ocaml-ppx/ocamlformat
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse new local syntax, but ignore when formatting.
Signed-off-by: Charlie Gunn <cgunn@janestreet.com> Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add tests. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Remove code to recognize ast pattern that no longer exists. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Support modes on arrow types. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Update normalize mapper to prevent bad sugaring. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix ast mapper to not drop modes and modalities in various places. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Support modes on value bindings. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add support for modes in pattern constraints and expression constraints. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Support modalities on record declarations. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Support modalities on value declarations. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix test; in [let (pat @ mode) = exp], the mode is actually attached to the value binding, not the pattern. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add tests for comments. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix moving comment in record fields. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add tests and make minor changes for formatting with line breaks. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Test in conjunction with old syntax. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix formatting of tuple patterns where els have modes. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add labeled tuple pattern tests. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix labeled tuple pattern punning with modes. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix invalid punning of labeled tuple expressions with modes. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add tests for attributes. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix issue with comments after [@] and [@@]. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix modes on let-bound tuple patterns. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix parens around aliased patterns with modes Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix tuple patterns with local exprs. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix let class expressions. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Move tests of modes on patterns to failing. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Fix incorrect dependencies in test causing CI failure. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Rework logic for handling comments after types in label declarations. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Extend tests of label declarations. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com> Add tests for --break-separators=after. Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com>
- Loading branch information
1 parent
21fe0cf
commit f396402
Showing
40 changed files
with
4,636 additions
and
320 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
Oops, something went wrong.