Closed rrudakov closed 2 years ago
@OknoLombarda can you take a look at this?
I've just noticed that it's also applicable to defmulti
and defmethod
:
Well, it's expected. Only defn
now has special highlighting. I'll add defn-
, defmulti
, defmethod
, deftest
and deftest-
to the list. I think that's all the definitions which define functions? Or should defmacro
and definline
be highlighted as function definitions, too?
We can have all of them with the same font-locking for now. I think that's how most Lisp major modes do it as.
Expected behavior
Test name highlighted with proper face (probably
font-lock-function-name-face
). I guess it can be related to https://github.com/clojure-emacs/clojure-mode/pull/630Actual behavior
Test name highlighted with
default
face.Steps to reproduce the problem
(deftest some-test)
Environment & Version information
clojure-mode version
MELPA package version:
clojure-mode 20220903.932
Emacs version
GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5.1 (Build 21G83)) of 2022-08-26
Operating system
MacOS