From 76630045fb5b1660c91e2ab960f5636f4d567c47 Mon Sep 17 00:00:00 2001 From: Sophie Bosio Date: Thu, 5 Dec 2024 16:35:52 +0100 Subject: [PATCH] Recognize hyphen or end of comment --- clojure-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clojure-mode.el b/clojure-mode.el index e6f7e185..a70ad39c 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -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