Regexp for imenu

Wright, Kevin kevin.wright at
Fri Jan 11 22:22:50 CET 2002

I typically format my functions this way:


but imenu fails to recognize this as a function, expecting spaces around the
assignment operator:

a <- function()

I think that the relevant part of ess-menu.el is
"ess-S-imenu-function-regexp".  The default value for this string is 


I've tried playing around with this regexp, for example
"^\\(.+\\)[ ]*<-[ ]*function"

It looks to me like any of these should work for me, but I'm not having any
luck.  Am I missing something obvious?

Kevin Wright, Research Scientist
Pioneer Hi-Bred Int'l, x4054.

ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at

More information about the ESS-help mailing list