Syntax highlightning incorrectly recognizes def form
Syntax highlightning incorrectly recognizes def form and highlights the first argument of any function which name starts with "def". Notice the highlight of the 'k argument on the screenshot below
That is unfortunate, but that’s part of design. This way we can support all past and future def* forms. Any suggestions?
maybe make a setting?
like ["*.def.*"]
And I'll change it in my config to ["*.defn", "*.def", "*.deftest", "*.defn-"]
Can’t, this goes into syntax highlighting, no settings there
let's see ~paul allen's card~ how emacs works this around... https://github.com/clojure-emacs/clojure-mode/blob/59888c84b61081e9b0085e388f55132925a66e7a/clojure-mode.el#L898-L927
This wouldn’t work for rum/defc, rum/defcs and humble’s ui/defcomp for example
@tonsky add them too :) this will make a subtle advert for your libs
And then wait for requests to add some other def* forms to your syntax rules. I doubt that this will be a frequent chore