justinbarclay / parinfer-rust-mode

Simplifying how you write Lisp
https://shaunlebron.github.io/parinfer/
GNU General Public License v3.0
227 stars 16 forks source link

Improper parens placement when a semicolon appears in a string #64

Closed togakangaroo closed 3 months ago

togakangaroo commented 1 year ago

Open up a scratch window, emacs-lisp-mode, and enable parinfer-rust-mode in smart

Input

(let* ((s "")))

Now try to put a semi-colon into that string. The second I hit the semi-colon key it becomes

(let* ((s ")));")))

If I then delete the semi-colon I get a malformed lisp file

(let* ((s ")))"
Ludwik-Grodzki-Droit commented 1 year ago

I'm seeing the same behaviour. To add, I'm running on a M1 Mac , under doom emacs.

askonomm commented 1 year ago

Yup, same here (macOS, Doom Emacs)

justinbarclay commented 3 months ago

I can't recreate this, but I think the root cause of this issue should be resolved as of 70927e26b7b719e32da7f9aea9bf4c94f4ea47be.

I'm happy to reopen this if others are still experiencing it.