Skip to content
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

lispy-tab escapes dot expressions in hy code #537

Closed
jx1e opened this issue Jun 21, 2020 · 4 comments
Closed

lispy-tab escapes dot expressions in hy code #537

jx1e opened this issue Jun 21, 2020 · 4 comments

Comments

@jx1e
Copy link

jx1e commented Jun 21, 2020

In hy-mode, dot-prefixed sexps and the . function are present and should not be escaped when using lispy-tab. E.g., this should not happen:

(.foo bar) -> (\.foo bar)
(. foo bar) -> (\. foo bar)
@abo-abo
Copy link
Owner

abo-abo commented Jun 22, 2020

Thanks, please test.

@jx1e
Copy link
Author

jx1e commented Jun 22, 2020

It works, thanks.

@jx1e
Copy link
Author

jx1e commented Jun 22, 2020

Forgot to mention that comma is also a symbol in hy and (, abc) shouldn't become (,abc). I think including , in the lispy--read-replace string in the next line fixes it.

abo-abo added a commit that referenced this issue Jun 22, 2020
@abo-abo
Copy link
Owner

abo-abo commented Jun 22, 2020

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants