Hello, Am 30.08.2008 um 14:53 schrieb Parth Malwankar:
Just found one minor issue.
defmulti formatting is like:
(defmulti foo :abc [n]
(println n))
With (pr.. being aligned with foo instead of ^(d.
I disagree. The format of defmulti is:
(defmulti name dispatch-fn [default-dispatch-val])
So one example usage would be:
---8<---
(defmulti sign (fn [x]
(if (< 0 x)
:negative
:positive)))
---8<---
The syntax you are referring to is the one of defmethod. This already
behaves as you requested. In case you want defmulti to behave the same,
you might put the following line in your .vim/after/indent/clojure.vim:
---8<---
setlocal lispwords+=defmulti
---8<---
You might also want to update the completions list as a bunch of stuff has been added in the last few days (lib support, get-in, printf etc)
Hehe. It's hard to stay up-to-date at the moment. :) Also for the highlighting. However I decided to go with the official API docs for the highlighting, since this is what the developer is supposed to use. I don't think, that highlighting or completion of internal functions is a good idea. I implemented the paren rainbow and made it optional via clj_paren_rainbow. I had to implement lispindent from scratch. For some reason it got confused. So the indent might be broken again. :/ I really need a test case with all special cases. Next release candidate (v1.2.1) available for Vim users to check out. http://kotka.de/projects/clojure/vimclojure.html Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature
