Fork me on GitHub
#clojure-uk
<
2020-11-18
>
dharrigan06:11:57

Good Morning!

djm06:11:55

👋

cdpjenkins10:11:10

Bore da! :flag-wales:

dharrigan11:11:45

Would this help?

dharrigan11:11:04

at least to get started

cddr11:11:11

Ah interesting. I came up with this while playing around for a few minutes.

[diff "clj"]
			xfuncname = "^(\\((defmethod|def|defn|ns).*)$"

cddr11:11:45

Though there's definitely more. And I need to figure out the regex incantation to exclude things beyond the [ so I just get the name

mamapitufo13:11:54

you could do something like xfuncname = "^[ \t]*(\\((ns|def[a-zA-Z0-9_-]*)[ \t]+[^[]+).*$" , assuming everything you are interested in starts with def

cddr13:11:33

Yeah, ended up with something like that. Seems to work quite nicely: https://gist.github.com/cddr/f269b4465a823e567bd85eb3aa16ed0d

3
rlj14:11:17

Mornin

👋 3