fantomas
fantomas copied to clipboard
Comment between lines breaks indentation
Issue created from fantomas-online
Code
5 =
// a comment
5
Result
5 =
// a comment
5
Problem description
By not indenting the second line, reformatting creates incorrect code.
Extra information
- [x] The formatted result breaks my code.
- [ ] The formatted result gives compiler warnings.
- [ ] I or my company would be willing to help fix this.
- [x] I would like a release if this problem is solved.
Options
Fantomas main branch at 1/1/1990
{ config with
IndentSize = 2 }
This is a bit tricky, I must admit. Dealing with the equals infix operator involves considering various complex scenarios. Tackling this without unintentionally causing new issues will definitely be a challenge.
I'd be happy to pair with someone if there are volunteers.