Fork me on GitHub
#vim
<
2020-06-12
>
martinklepsch07:06:18

Anyone know how to get #_ comments to be shown in gray like regular ; line comments?

dominicm07:06:03

I opened a issue about this once

dominicm07:06:08

there's a hack you can do

dominicm07:06:10

lemme try dig it up

dominicm07:06:32

I think that tree-sitter will be far better though. vim regex can't handle something like #_#_

sogaiu08:06:32

i didn't manage to get some other things to work out well though (e.g. reliable recognition of function definitions)

dominicm08:06:06

Pshht, I think that's fine in clojure

dominicm08:06:13

There's no syntax for functions

sogaiu08:06:39

i'm glad to hear it 🙂

noisesmith13:06:56

something might be going over my head here - you don't mean the #() syntax do you?

sogaiu21:06:02

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.

noisesmith22:06:04

oh it wants a syntax, and aside from the shorthand, we don't have one

noisesmith22:06:33

unless you can call "defn" as the initial token a syntax