-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parinfer Does Not Ignore Parens in String Literals [Spacemacs/Emacs] #139
Comments
Hrmm... it is definitely supposed to, and this doesn't happen for me. Is it possible there's another plugin doing something weird? |
To be clear, I tested in a different editor because I don't have a Spacemacs setup at the moment. |
I am able to reproduce this on the latest It does not occur when switching to |
Appears to be a regression between 0789c485 and 60204aba Last buildable commit that doesn't have issue: |
I just started noticing this as well in Emacs, it messes up a lot of files, thanks for finding the commit to revert to. |
FTR, the only meaningful difference I saw at first glance is the pattern matching order changing in the What I don't get, is how can we be hit by a regression now while the change is 2 years old. |
@gagbo, I believe the issue was just that the Emacs plugin isn't providing a |
The I suppose the issue is stemming from here not The commits in the span you found seem to indicate that |
I first noticed this with a regex expression that was getting messed up in Clojure, but it appears to be the case for normal string literals as well.
Type
"()"
, delete closing parens, and parinfer edits it to"(")
. It's not often that I have to use parens inside of strings, but for a regex it is obviously something that happens frequently. Regexes of course do not follow the same syntax as a lisp, so this is obviously quite undesirable.The text was updated successfully, but these errors were encountered: