Skip to content

Commit a373d63

Browse files
committed
Improve clojure-find-def matching (support hyphens)
Custom def... macros might contain hyphens (e.g. defxxx-yyy).
1 parent b304afd commit a373d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clojure-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ Useful if a file has been renamed."
11031103
Returns a list pair, e.g. (\"defn\" \"abc\") or (\"deftest\" \"some-test\")."
11041104
(let ((re (concat "(\\(?:\\(?:\\sw\\|\\s_\\)+/\\)?"
11051105
;; Declaration
1106-
"\\(def\\sw*\\)\\>"
1106+
"\\(def\\(?:\\sw\\|\\s_\\)*\\)\\>"
11071107
;; Any whitespace
11081108
"[ \r\n\t]*"
11091109
;; Possibly type or metadata

0 commit comments

Comments
 (0)