Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment in middle of pattern fail formatting #1939

Closed
dsyme opened this issue Oct 31, 2021 · 1 comment
Closed

Comment in middle of pattern fail formatting #1939

dsyme opened this issue Oct 31, 2021 · 1 comment

Comments

@dsyme
Copy link
Contributor

dsyme commented Oct 31, 2021

Problems formatting this:

let f () =
  match lines with
  | head ::
      // Comment
      tail -> 1
  | _ -> None

Result is

let f () =
    match lines with
    | head ::
    // Comment
    tail -> 1
    | _ -> None

https://fsprojects.github.io/fantomas-tools/#/fantomas/preview?data=N4KABGBEDGD2AmBTSAuKAbRAXMAzMAFAJRgC8AOgE7kB2EAtgIZbQAWY6AljYgM5gB3TllZVaEAD5hWiRvDAoUYuhFUB6NWADCsevUQ0sy1aqyNO6MAFoAfGACMxsFID61uwDlYPZZAA04FC82FjcAOa8qGAA2oEQoCYQkAAkWACeAA7IaJDcWP5xqikAbozoAK7ZMYUmAAwBiUUAkjRIhgDKnABeyA2NYAAsNWAAuoUAvn3xwynpWVG5hgWNJWWVUbH9DlOJkACyjAAeADLciMcGYSLL-fYATLXDYyaThQm7qZlVkABGsLDoG4mVYVKqbfp3HbA9qIeicODobwAQSwAFFWgB5XCnHhAxK4MrBJ4THbvYGfeY5P4AvFJZKlUEbYYQADMUKK7QyjGgiAAQohcLBKIgAAqMSiMfRYRCUWmmSiVYkvUkzCnfamA9kg9ZocGNAbspKc7l8gVC86wAQy6CMYItYqwG2hbxyiBYBWIJWqV4mMlFNULDVy7Vg5lgACshqgxp5-MFwoAqhkspQbXaaA6nZwXVGCegiY1nt6VSsA1T-prVQyddUtgA2KOQGOm%2BOILToW28HQ0Xju8rQLBC114Qmewskt6qubqivB%2BlrUNbADsjebcfNe1hPxlw7zBcSRYgPtUfrp08Ds6188ZurDAA5V1zY2bhTpETRd6OvUeSx9z%2BWa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jKGgVjigWj4f-a6H9uDf28EA-oIDj5iVPqwxR7CU6cLcQHfo%2BxZ7YOOJKH48BGDtlgN1Phd8H5nBsYZJhQ8wHKyccQ1x-QWSZxSW5CWjAfiYGoRLVg7Q0iGCOCU-B4CFgGHgFibB7R0iYGqdA2pDcUnoiGdiYpGNKDoFwG7KJAV%2BkAWcQkmpjQWTTxSYg5BFjDAtFXowPRLNcG2MHvY4eCiIETJUaoFkN8UkL3OUvbBvAnIuVaHfXsiB4az0tp3TqPcey%2BUVGslh5lJJKJcZM3ZcC3ninXMKRpvBoCUE4HCHx0p4AJi-t4Dy0AOwSmdAfaReDoUxNhWwseCKnmsgoSk0Z2KBwSKQL0tZgQRh9FyLwP63UoggPGEAA

@nojaf
Copy link
Contributor

nojaf commented Jan 2, 2023

Fix available in v5.2.0-beta-001

@nojaf nojaf closed this as completed Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants