At 05:38 PM 12/22/99 +0200, Sveta Mordkovich wrote:
>Paul Kinnucan wrote:
>> 
>> Try upgrading to the current version of the JDE. The regular
>> expressions that it uses to parse the source buffer
>> (see jde-make-imenu-patterns) include underscore as a letter.
>> 
>
>Yes, it was the first thing I've checked. And in the the previous 
>versions of JDE jde-make-imenu-patterns are the same.
>But it doesn't work!..

I've looked into this and have found the reason why this fails. The JDE's
regular expression for an IDENTIFIER defines an identifier as any WORD that
begins with a LETTER and is followed by LETTERs or DIGITs. The JDE defines
an underscore as a LETTER. However, Emacs does not, by default, consider an
underscore as a word character. Hence the JDE's regular expressions do not
work for identifiers that begin with an underscore. There is a workaround,
however, which is to change the category of underscore from non-word to
word character. The next release of the JDE will make this modification.
Meanwhile, you can accomplish the same modification by inserting the
following form

(modify-syntax-entry ?_ "w")

in a jde-mode hook function in your .emacs file.

- Paul

Reply via email to