-
-
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
[syntax highlighting] functions highlighted as vars #2953
Comments
So, to summarize you don't want the var highlighting, right? Does this disappear if you do |
Umm, not quite. I do want dynamic vars to be highlighted, it is useful feature, I just don't want functions to be highlighted as vars. Removing
If CIDER can properly highlight functions, maybe this info can be used to unhighlight those? Or when highlighting a var check if it is a function var, if this even makes sense.. |
Yeah, my point was that probably the bug is related to the current definition of var. I don't remember this code well anymore, but I'll review it when I can. If you'd like to take a stab at this you can start here Line 751 in 4b6c0e9
|
In particular:
I guess the bug is obvious here - if the function highlighting is not enabled everything becomes a var. Depending on your perspective this can be an issue or a feature. :-) I wonder why |
Perhaps because it is handled by |
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:
And I get the usual highlighting:
However if I remove
core
andfunction
from this setting:(setq cider-font-lock-dynamically '(macro var))
I get the following result after I load file:
Expected behavior
Steps to reproduce the problem
init.el
:bug.clj
file with Ctrl-cCtrl-kThis results into the following highlighting:
Environment & Version information
CIDER version information
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
The text was updated successfully, but these errors were encountered: