clojure-emacs/clojure-mode

Incorrect syntax highlighting for test name defined with `deftest`

rrudakov opened this issue · 4 comments

Expected behavior

Test name highlighted with proper face (probably font-lock-function-name-face). I guess it can be related to #630

Actual behavior

Test name highlighted with default face.

Screenshot 2022-09-05 at 11 16 04

Steps to reproduce the problem

  • create test namespace
  • type (deftest some-test)

Environment & Version information

clojure-mode version

clojure-mode (version nil) ;; I guess this is another issue with the package

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

@OknoLombarda can you take a look at this?

I've just noticed that it's also applicable to defmulti and defmethod:
image

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.