Skip to content

Commit

Permalink
Recognize hyphen or end of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieBosio authored and bbatsov committed Dec 11, 2024
1 parent 740ca69 commit 7663004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -2266,7 +2266,7 @@ renaming a namespace."
(defconst clojure-def-type-and-name-regex
(concat "(\\(?:\\(?:\\sw\\|\\s_\\)+/\\)?"
;; Declaration
"\\(def\\(?:\\sw\\|\\s_\\)*\\)\\>"
"\\(def\\(?:\\sw\\|\\s_\\)*\\(?:-\\|\\>\\)\\)"
;; Any whitespace
"[ \r\n\t]*"
;; Possibly type or metadata
Expand Down

0 comments on commit 7663004

Please sign in to comment.