-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClojureScript dynamic font lock not working for new functions (var
)
#3393
Comments
Thanks for the new issue, much easier to manage things that way 👍 |
var
)
I can repro (note to self: the key to reproing is creating a new function). A few observations:
It's as if Fixing this should be pretty important beyond the syntax highlighting, because the |
I have the impression that the track-state middleware runs just once for cljs, then never again. Maybe it has to do with middleware order? This is shadow's order: ...emphasis on |
It's possible, like many things in CIDER it was designed for Clojure in the days where ClojureScript wasn't really a thing. I'm also wondering if it behaves in the same way with different ClojureScript REPLs given all the differences between them. |
Fixed. You'd need to use cider-nrepl 0.35.0 and cider master. Fixing this resulted in an overall improvement, beyond font-locking. So thanks for the heads up - don't hesitate to report more issues! |
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).
Steps to reproduce the problem
(setq cider-font-lock-dynamically '(macro core function var))
in your initThere 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 withvar
.The text was updated successfully, but these errors were encountered: