Skip to content

poor formatting of toplevel directives #731

@jberdine

Description

@jberdine

toplevel directives are formatted with leading ;;, and moved wrt comments:

$ ocamlformat --name tools/gen_version.mlt tools/gen_version.ml
;;
#directory "+unix"

;;
#load "unix.cma"

(**********************************************************************
 *                                                                    *
 *                            OCamlFormat                             *
 *                                                                    *
 *  Copyright (c) 2019-present, Facebook, Inc.  All rights reserved.  *
 *                                                                    *
 *  This source code is licensed under the MIT license found in the   *
 *  LICENSE file in the root directory of this source tree.           *
 *                                                                    *
 **********************************************************************)

let fake_watermark = "%%" ^ "VERSION" ^ "%%"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions