Skip to content

Commit 6645281

Browse files
committed
Merge pull request #70 from ieure/master
Highlight definer forms
2 parents c4a2961 + 24757fe commit 6645281

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clojure-mode.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,16 @@ elements of a def* forms."
349349
;; Possibly type or metadata
350350
"\\(?:#?^\\(?:{[^}]*}\\|\\sw+\\)[ \r\n\t]*\\)*"
351351
"\\(\\sw+\\)?")
352+
(1 font-lock-type-face)
353+
(2 font-lock-function-name-face nil t))
354+
(,(concat "\\(\\(?:[a-z\.-]+/\\)?def\[a-z\]*-?\\)"
355+
;; Function declarations.
356+
"\\>"
357+
;; Any whitespace
358+
"[ \r\n\t]*"
359+
;; Possibly type or metadata
360+
"\\(?:#?^\\(?:{[^}]*}\\|\\sw+\\)[ \r\n\t]*\\)*"
361+
"\\(\\sw+\\)?")
352362
(1 font-lock-keyword-face)
353363
(2 font-lock-function-name-face nil t))
354364
;; Deprecated functions

0 commit comments

Comments
 (0)