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

Wrong indentation for ->> inside a letfn #56

Open
boechat107 opened this issue Nov 3, 2014 · 3 comments
Open

Wrong indentation for ->> inside a letfn #56

boechat107 opened this issue Nov 3, 2014 · 3 comments

Comments

@boechat107
Copy link

I'll just copy/paste an example:

(let [x (fn [y] 1)]
  (->> "ola" 
       (x)))

(letfn [(x [y] 1)]
  (->> "ola" 
    (x)))

Is it clear?

@guns
Copy link
Owner

guns commented Nov 3, 2014

Yes, thank you for reporting!

This is definitely a shortcoming in the indentation algorithm for letfn, and other "specially" indented forms.

I have been out of the Clojure loop for a few months now, but I am planning on revisiting and fixing issues when a 1.7.0 beta drops, and I will make sure to finally fix this bug as well.

Patches are definitely welcome in the meantime, if you can stomach a little Vimscript :)

@boechat107
Copy link
Author

Thanks for replying, @guns!

I'll try to find some time to look at the code.

@rkoch
Copy link

rkoch commented Jul 15, 2015

I just stumbled over this as well. Have you already been able to locate the problem?

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

3 participants