ex_format
ex_format copied to clipboard
Line splitting
- [ ] Accept option for line length limit
- [x] When dealing with lists, maps, structs, or tuples, detect user intent and split element by element.
- [ ] For other syntactic constructs, use the algorithm from "Strictly Pretty" instead (https://pdfs.semanticscholar.org/c73c/a9cc74351fe7f8f3dddc69d2e82326af82c0.pdf)
Hello! Just so you know the algorithm in Inspect.Algebra
does not match the one from "Strictly Pretty". I found it to be less useful for formatting source code, so I would recommend implementing the one from the paper instead. The Inspect.Algebra
one can be used as a base :)
I see, thanks for the heads-up!