Skip to content

Wrong indentation for ->> inside a letfn #56

Open
@boechat107

Description

@boechat107

I'll just copy/paste an example:

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

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

Is it clear?

Activity

guns

guns commented on Nov 3, 2014

@guns
Owner

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

boechat107 commented on Nov 4, 2014

@boechat107
Author

Thanks for replying, @guns!

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

rkoch

rkoch commented on Jul 15, 2015

@rkoch

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

added 2 commits that reference this issue on Jan 10, 2021
564cd65
8b45ef1
added 2 commits that reference this issue on Jan 14, 2021
cd56bf6
b974eb0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @guns@rkoch@boechat107

        Issue actions

          Wrong indentation for ``->>`` inside a ``letfn`` · Issue #56 · guns/vim-clojure-static