This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-12
Channels
- # aleph (1)
- # aws (2)
- # babashka (44)
- # beginners (178)
- # biff (12)
- # calva (22)
- # chlorine-clover (60)
- # cider (1)
- # clj-kondo (9)
- # cljdoc (6)
- # cljs-dev (37)
- # cljss (2)
- # clojure (43)
- # clojure-europe (3)
- # clojure-finland (23)
- # clojure-italy (1)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (56)
- # clojure-uk (148)
- # clojuredesign-podcast (1)
- # clojurescript (11)
- # conjure (5)
- # core-async (22)
- # cursive (9)
- # datascript (5)
- # datomic (4)
- # duct (8)
- # emotion-cljs (2)
- # figwheel-main (15)
- # fulcro (53)
- # graalvm (68)
- # helix (2)
- # jackdaw (1)
- # kaocha (9)
- # lambdaisland (1)
- # malli (10)
- # meander (2)
- # news-and-articles (1)
- # observability (12)
- # off-topic (17)
- # pathom (1)
- # pedestal (25)
- # practicalli (1)
- # protojure (4)
- # re-frame (2)
- # reagent (57)
- # reitit (1)
- # releases (2)
- # shadow-cljs (69)
- # specter (6)
- # tools-deps (10)
- # vim (16)
- # vscode (4)
- # yada (3)
Anyone know how to get #_
comments to be shown in gray like regular ;
line comments?
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)
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