From 46b3f23dd04a6fff8335ae52bd9ce7efe241c4ae Mon Sep 17 00:00:00 2001 From: Vadim Rodionov Date: Mon, 5 Sep 2022 18:16:20 +0600 Subject: [PATCH] Fix function definition names being not highlighted --- clojure-mode.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/clojure-mode.el b/clojure-mode.el index dc0d0b7c..04441821 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -879,8 +879,16 @@ any number of matches of `clojure--sym-forbidden-rest-chars'.")) "\\(\\sw+\\)?") (2 font-lock-type-face nil t)) ;; Function definition - (,(concat "(\\(?:clojure.core/\\)?" - "\\(defn\\)" + (,(concat "(\\(?:clojure.core/\\)?\\(" + (regexp-opt '("defn" + "defn-" + "defmulti" + "defmethod" + "deftest" + "deftest-" + "defmacro" + "definline")) + "\\)" ;; Function declarations "\\>" ;; Any whitespace