Anyone know how to get #_
comments to be shown in gray like regular ;
line comments?
I opened a issue about this once
there's a hack you can do
lemme try dig it up
I think that tree-sitter will be far better though. vim regex can't handle something like #_#_
i think that is something that tree sitter can handle: https://github.com/sogaiu/tree-sitter-clojure/blob/master/grammar.js#L169
i didn't manage to get some other things to work out well though (e.g. reliable recognition of function definitions)
Pshht, I think that's fine in clojure
There's no syntax for functions
i'm glad to hear it 🙂
something might be going over my head here - you don't mean the #()
syntax do you?
not sure who the question is for, but fwiw that construct, #()
, was manageable: https://github.com/sogaiu/tree-sitter-clojure/blob/master/grammar.js#L444
what i didn't get working well was recognizing things like (defn name [...
- as forms that look similar can appear inside macro definitions, as part of case
, and potentially other places.
oh it wants a syntax, and aside from the shorthand, we don't have one
makes sense
unless you can call "defn" as the initial token a syntax