lem
lem copied to clipboard
feature: detective should capture `defroute` and `define-other-thing`
Currently M-x detective-all doesn't show definitions such as:
(defroute route () …)
(define-thing thing () …)
It should!
I tried some regexs with no avail:
;; lisp-mode.lisp
:misc-regex
(lem/detective:make-capture-regex
:regex "^(?:\\(define-[a-zA-Z]* |\\(def[a-zA-Z]* )"
This one catches defroute but not define-thing:
:regex "^\\(def[a-zA-Z]* "
We should add and escape a "-" in it somehow.
@Sasanidas Ideas?
thanks