thanks to for bringing this up.
Currently, unmatched close-parens are removed indiscriminately. This is a problem for the following case
clj
(foo [|bar) baz
because Indent Mode will turn it into:
clj
(foo [|bar baz])
The obvious solution is to match the )
with the (
further back, then to close all open-parens between them, so that we have this:
clj
(foo [|bar]) baz
But this new behavior would imply that typing an unmatched )
below
clj
(foo [bar| baz])
would result in:
clj
(foo [bar])| baz
I will look at how this affects Indent Mode.
该提问来源于开源项目:shaunlebron/parinfer