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

Fix 2151, index syntax without dot on array of arrays #2163

Merged
merged 2 commits into from Mar 24, 2022

Conversation

dawedawe
Copy link
Member

Fixes #2151

I think the source of the problem was that ElmishReactWithChildren was matching too much, so I restricted it instead of changing IndexWithoutDotExpr.

src/Fantomas/SourceParser.fs Outdated Show resolved Hide resolved
Copy link
Contributor

@nojaf nojaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you.

@nojaf nojaf merged commit 3e8086f into fsprojects:master Mar 24, 2022
jindraivanek pushed a commit to jindraivanek/fantomas that referenced this pull request Mar 30, 2022
* Fix 2151 (index syntax without dot on array of arrays) by taming what ElmishReactWithChildren matches

* Combine APs for IndexWithoutDotExpr, ElmishReactWithoutChildren, ElmishReactWithChildren into one
@dawedawe dawedawe deleted the fix-2151 branch August 25, 2022 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reformatting multiple array index operators (v6 style) adds spaces that are invalid
2 participants