Skip to content

ClojureScript dynamic font lock not working for new functions (var) #3393

@nikolavojicic

Description

@nikolavojicic

First go through this issue #3385 and use cider-nrepl version 0.34.0.

Expected behavior

User defined functions should be dynamically highlighted.

Actual behavior

In ClojureScript, new user defined functions are not dynamically highlighted but old ones are (there is no such problem in Clojure).

258242216-97a9316e-a64a-4efd-881e-99b61a3842c4

Steps to reproduce the problem

  1. (setq cider-font-lock-dynamically '(macro core function var)) in your init
  2. Run cider-jack-in-cljs
  3. Choose shadow
  4. Choose :app
  5. Visit application in browser
  6. Write the code from above
  7. Evaluate that code

There is no such problem if you write (setq cider-font-lock-dynamically '(macro core function deprecated)) in your config, i.e. the problem is probably with var.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions