-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Reformatting multiple array index operators (v6 style) adds spaces that are invalid #2151
Comments
Hello Richard, thank you for creating this issue. To fix this, I believe we need to extend: fantomas/src/Fantomas/SourceParser.fs Lines 906 to 918 in 9059695
and capture the AST shape of b[0][0] Are you interested in submitting a PR for this? |
Having had a brief look at that, it it somewhat beyond my current level of F# and parsing expertise. Sorry. |
Thanks for the fix. |
I'll publish a new version tomorrow. |
Fix confirmed. |
Issue created from fantomas-online
Code
Result
Problem description
See above for the simplest repro I could come up with (real case had expressions for the indexes. Note using pre-v6 indexing (
.[…]
) works.Extra information
Options
Fantomas master branch at 2022-03-11T15:23:45Z - 1531c68
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: