Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d472982

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

File tree

1 file changed

+10
-2
lines changed
Filter options

1 file changed

+10
-2
lines changed

‎clojure-mode.el

Copy file name to clipboardExpand all lines: clojure-mode.el
+10-2Lines changed: 10 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.