clojure-emacs / clojure-ts-mode

The next generation Clojure major mode for Emacs, powered by TreeSitter
GNU General Public License v3.0
129 stars 11 forks source link

Better font-locking in method definitions #20

Closed dannyfreeman closed 12 months ago

dannyfreeman commented 1 year ago

Method definitions in forms like defprotocol, definterface, deftype, reify, etc should have nice font locking on the method names.

I've already done some work to make docstrings and semantic indentation work properly in these forms. Taking inspiration from that prior art, it should be fairly trivial to capture these nodes in the :definition font-lock feature.