You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
should we support plumatic style defn syntax (?) #28
is there any desire to support this out-of-the-box? it might be challenging to add an user configuration mechanism for it , and there's not a lot of downside to understanding the optional syntax. This is a qualitatively distinct problem than supporting different function definition aliases 'defn', which is more amenable to user config.
:- appears both to denote function return type, as well as function parameter(s) type, the only place where support needs to be added is the function return type as far as I can tell.
it's a trivial change in clojure-ts--docstring-query , I'm using this rough code right now, but probably needs a :match expression the literal :-
I think it's best to avoid syntax that's not from the core language, as ones we add support for something it's a slippery slope from there. With TreeSitter it's easy to add additional font-locking features, and I think that's what people looking for additional font-locking should be doing. The indentation rules are slightly trickier to extend, but that's totally doable.
Activity
bbatsov commentedon Mar 7, 2025
I think it's best to avoid syntax that's not from the core language, as ones we add support for something it's a slippery slope from there. With TreeSitter it's easy to add additional font-locking features, and I think that's what people looking for additional font-locking should be doing. The indentation rules are slightly trickier to extend, but that's totally doable.
bbatsov commentedon Apr 16, 2025
With version 0.3 the indentation rules are configurable as well, so I guess this can be closed.