clj-commons / marginalia

Ultra-lightweight literate programming for clojure inspired by docco
https://clj-commons.org/marginalia/
814 stars 82 forks source link

No doc-string recognized for the functions that use Prismatic's Schema #133

Open luxbock opened 10 years ago

luxbock commented 10 years ago

More specifically, if the function includes a return type, as defined in Schema by:

(defn name :- Type "doc-string" [args] body)

Then Marginalia misses the doc-string, as now the doc-string is the fifth element in the function definition instead of the third. I don't know if there's an easy fix for this, but I figured it's worth pointing out.

yatesco commented 9 years ago

+1

gdeer81 commented 9 years ago

Thanks for reporting this. I'm working on a long-term fix for parsing issues like this. star