Skip to content

[syntax highlighting] functions highlighted as vars #2953

@andreyorst

Description

@andreyorst

I've disabled function highlighting, to bring color intensity a bit down by changing cider-font-lock-dynamically.
By default it is set to this:

'(macro core function var)

And I get the usual highlighting:

image

However if I remove core and function from this setting:

(setq cider-font-lock-dynamically '(macro var))

I get the following result after I load file:

image

Expected behavior

image

Steps to reproduce the problem

  1. Download bug.zip, extract and run Emacs with provided minimal init.el:
$ unzip bug.zip
$ cd bug
$ emacs -q -l repro-init.el bug.clj
  1. Jack in: Ctrl-cAlt-jy
  2. Load bug.clj file with Ctrl-cCtrl-k

This results into the following highlighting:

image

Environment & Version information

CIDER version information

;; CIDER 1.0.0snapshot (package: 20201216.1330), nREPL 0.8.3
;; Clojure 1.10.1, Java 11.0.9.1

Emacs version

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13) of 2020-12-23

Operating system

Fedora 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions