Skip to content

Commit

Permalink
Fix function definition names being not highlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Rodionov authored and bbatsov committed Sep 5, 2022
1 parent 49c1615 commit d472982
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d472982

Please sign in to comment.