-
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
Mishandling semicolon inside vertical bar literal #115
Comments
Seems related to #77 — enabling However, #78 only implements this for (neo)vim plugin, so currently, there's no support for this in Emacs: parinfer-rust/src/emacs_wrapper.rs Line 160 in 9e41222
(I haven't checked, but I think kakoune plugin doesn't implement this either) Potential Fix for Emacs
But this will be a breaking change: the new version of Vim plugin doesn't have this problem since it communicates with parinfer-rust/plugin/parinfer.vim Lines 213 to 225 in 211f72e
So it doesn't need to pass all the options. Perhaps JSON communication could be used for Emacs mode too? Or is there a way to pass a dictionary/map from Elisp to Rust directly? @eraserhd @justinbarclay, what do you think? |
Parinfer thinks that semicolons between vertical bars is a comment (it's not). At least in common lisp, racket, and lumen this is wrong
is changed to
which is wrong.
reproductions:
https://onecompiler.com/racket/3xjvghuay
https://onecompiler.com/commonlisp/3xjvgwzbj
this is burning me when
|
is being used to quote literal code in a transpiler:https://github.com/sctb/lumen/blob/master/test.l#L202
The text was updated successfully, but these errors were encountered: