Closed esuomi closed 7 years ago
This looks like correct behavior. Parinfer places delimiters based on indentation. To correct it, select the two bottom lines and hit shift+tab (I think you'll need to do this twice). By fixing the indentation, parinfer will automatically place the closing square bracket in the right spot.
Let me know if that explanation doesn't make sense.
Hi,
Well, I suppose it is correct from semantical point of view but not from an IDE as developer utility point of view :) I figured something like that would be the cause though and also understand that fixing it would actually mean processing the AST and doing non-linear resolving similar to eg. Cursive and that might be a bit much as this is "just" Parinfer.
That is understandable. I am going to work on some modifications to parinfer's behavior in the future, and when doing so I'll consider this case.
Sounds good to me 👍
Steps to reproduce:
Start with the following:
(apply f
character by character with the DEL key.Observe that at the same instant the character
f
is deleted, the params list closing bracket jumps to the pile-o-parens at the end and tries its best to stay there as seen below:There seems to be a few variants of this behaviour depending on how deeply nested the form is, mainly in how sticky the
]
becomes.