Closed rrudakov closed 12 months ago
Going to have a look at this soon, thank you
This seems good. I was unaware you could use things like :match
deeper inside of queries closer to the thing being matched.
I am going to pull it next time I am free at the computer to actually test it out. Once that checks out I will merge. Thanks again for helping out.
At some point later I'm going to go through all the regular expression for matching different things and organize them into nicer lists that the user can extend to address https://github.com/clojure-emacs/clojure-ts-mode/issues/15
Thanks!
Resolve #20.
deftype
,definterface
,defrecord
,reify
anddefprotocol
are highlighted withfont-lock-function-name-face
.I've also changed some existing queries (I can revert it if those are undesirable):
clojure-ts--definition-symbol-regexp
is quite greedy. It highlights everything following a symbol prefixed withdef
withfont-lock-function-name-face
. As a resultdeftype
,defprotocol
etc were highlighted as functions, now types are highlighted withfont-lock-type-face
to be consistent withclojure-mode
.font-lock-type-face
to be consistent withclojure-mode
.Images:
Before:
After:
clojure-mode
Before submitting a PR mark the checkboxes for the items you've done (if you think a checkbox does not apply, then leave it unchecked):
M-x checkdoc
and fixed any warnings in the code you've written.Thanks!