clojure-emacs / clojure-ts-mode

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

Highlight methods in some forms #21

Closed rrudakov closed 1 year ago

rrudakov commented 1 year ago

Resolve #20.

I've also changed some existing queries (I can revert it if those are undesirable):

Images:


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):

Thanks!

dannyfreeman commented 1 year ago

Going to have a look at this soon, thank you

dannyfreeman commented 1 year ago

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

rrudakov commented 1 year ago

Thanks!