abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.2k stars 132 forks source link

lispy-tab escapes dot expressions in hy code #537

Closed jx1e closed 4 years ago

jx1e commented 4 years ago

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 commented 4 years ago

Thanks, please test.

jx1e commented 4 years ago

It works, thanks.

jx1e commented 4 years ago

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 commented 4 years ago

Thanks.