vim-clojure-static icon indicating copy to clipboard operation
vim-clojure-static copied to clipboard

Indenter thinks comments are function arguments

Open raxod502 opened this issue 10 years ago • 1 comments

There are (primarily) two different ways that function arguments are indented in Clojure:

(function
  arg arg arg)

(function arg
          arg
          arg)

Now, when I put a comment directly after the function name, vim-clojure-static thinks that it is an argument:

(function ; comment
          arg
          arg)

I think this would make more sense:

(function ; comment
  arg
  arg)

raxod502 avatar Jul 09 '15 15:07 raxod502

Yes, I agree. I'll take a look into it. Thanks for reporting!

guns avatar Jul 09 '15 18:07 guns