Skip to content

Commit d472982

Browse files
Vadim Rodionovbbatsov
Vadim Rodionov
authored andcommitted
Fix function definition names being not highlighted
1 parent 49c1615 commit d472982

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

clojure-mode.el

+10-2
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,16 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
879879
"\\(\\sw+\\)?")
880880
(2 font-lock-type-face nil t))
881881
;; Function definition
882-
(,(concat "(\\(?:clojure.core/\\)?"
883-
"\\(defn\\)"
882+
(,(concat "(\\(?:clojure.core/\\)?\\("
883+
(regexp-opt '("defn"
884+
"defn-"
885+
"defmulti"
886+
"defmethod"
887+
"deftest"
888+
"deftest-"
889+
"defmacro"
890+
"definline"))
891+
"\\)"
884892
;; Function declarations
885893
"\\>"
886894
;; Any whitespace

0 commit comments

Comments
 (0)