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

Jank Support #23

Open dannyfreeman opened 11 months ago

dannyfreeman commented 11 months ago

We should consider having a way to support the Jank dialect of Clojure

Some interest is expressed here: https://github.com/jank-lang/jank/issues/24

I would propose a new derivative mode, something like clojure-jank-ts-mode.

Jank supports some embedded code (c++). We could work to include a nested parser for this language. Good support for this may not land until Emacs 30. Currently nested parsers have a tendency to break out of their regions.

sogaiu commented 2 weeks ago

Wasn't sure which might be the relevant bits in Emacs, but came across this. Just leaving it here for future reference :)

Update: I guess that's the kind of thing you had in mind based on the code I see here -- (e.g. treesit-range-rules).