Regexp for imenu

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


I typically format my functions this way:

a<-function(){...}

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 

"^\\(.+\\)\\s-*<-\\s-*function"


I've tried playing around with this regexp, for example
"^\\(.+\\)[ ]*<-[ ]*function"
and
"^\\(.+\\)<-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 stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list