Skip to content

Commit

Permalink
[Fix #2088] Font-lock properly fns defined with def (#2086)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarkv authored and bbatsov committed Sep 25, 2017
1 parent 93bdb46 commit 39d86a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Bugs Fixed

* [#2088](https://github.com/clojure-emacs/cider/issues/2088): Fix functions defined with def being font locked as vars instead of functions.

## 0.15.1 (2017-09-13)

### New Features
Expand Down
3 changes: 2 additions & 1 deletion cider-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,8 @@ with the given LIMIT."
(push sym deprecated))
(cond ((and do-macro (nrepl-dict-get meta "macro"))
(push sym macros))
((and do-function (nrepl-dict-get meta "arglists"))
((and do-function (or (nrepl-dict-get meta "fn")
(nrepl-dict-get meta "arglists")))
(push sym functions))
(do-var (push sym vars))))))))
(when (memq 'core cider-font-lock-dynamically)
Expand Down

0 comments on commit 39d86a6

Please sign in to comment.