-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Formatting power operator in code quotation pattern match fails #1945
Labels
Comments
Hey Colin! Thanks for reporting this issue. I believe the problem might be centred around fantomas/src/Fantomas/SourceParser.fs Lines 136 to 155 in 735d58e
Are you interested in submitting a PR? |
I'd be happy to have a go. It looks like adding a special case then leaving extra space would work. |
Yup, I was thinking along those lines as well. |
nojaf
added a commit
that referenced
this issue
Nov 6, 2021
* #1945 regression test * Adapt (|OpNameFullInPattern|) special handling of star operators. When the space is removed it becomes a nested comment breaking code * Use standard template * Remove blank line and put source on next line. Co-authored-by: nojaf <florian.verdonck@outlook.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue created from fantomas-online
Code
Result
Problem description
Taken from a larger codebase where we're doing code transformations. The power operator
**
is getting formatted such that it breaks the code - it looks like it's become a code comment which may explain the error.Extra information
Options
Fantomas 4.6 branch at 11/01/2021 19:30:14 - c02b8d1
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: