Fork me on GitHub
#parinfer
<
2016-08-17
>
holyjak13:08:35

I have yet another problem with parinfer/Cursive: 1. START:

|(doto nil
  (.someMethod))
2. TYPE (do<enter> where the | cursor is => you get:
(do
 |(doto nil)
  (.someMethod)) ; <-- this has lost the correct indentation and moved out of its parent sexp!
But I EXPECTED:
(do
  |(doto nil
    (.someMethod)))

shaunlebron17:08:08

thanks @holyjak, due to related problems, I’ve planned for a well-formed way to preserve the AST when enter is pressed

shaunlebron17:08:07

that’s actually an example I hadn’t considered, but is a great example of why pressing enter should not break the AST

holyjak17:08:14

I think that parinfer will be really awesome when these "small" inconveniences are overcome!

shaunlebron17:08:07

there are some warts that will be hard to solve, but this is not one of them :+1: