Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: detective should capture defroute and define-other-thing #1628

Open
vindarel opened this issue Nov 21, 2024 · 0 comments
Open

feature: detective should capture defroute and define-other-thing #1628

vindarel opened this issue Nov 21, 2024 · 0 comments

Comments

@vindarel
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant