Subject: Re: bug#19285: 24.4; ruby-imenu-create-index-in-block gets confused by regular expression in source code
From: Dmitry Gutov <[email-masked]>
To: Moritz Bunkus <[email-masked]>
Cc: [email-masked]
Date: Mon, 09 Mar 2015 05:58:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 25.1

Moritz Bunkus <[email-masked]> writes:

> If I have certain Ruby code inside my source file then
> ruby-imenu-create-index-in-block (which is `imenu-create-index-function'
> is set to in ruby-mode) then imenu only sees the definitions that occur
> before said regular expression.

The problem was rather with detection of regexps after `!' (you could
see it was not highlighted).

Should be fixed in master now, thanks for the report.