emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/clojure-mode d47298212f: Fix function definition names bei


From: ELPA Syncer
Subject: [nongnu] elpa/clojure-mode d47298212f: Fix function definition names being not highlighted
Date: Mon, 5 Sep 2022 08:58:22 -0400 (EDT)

branch: elpa/clojure-mode
commit d47298212ffc486ade3f2428f103feba3a467af0
Author: Vadim Rodionov <rodionov@tuta.io>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    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 dc0d0b7c5d..044418216b 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]