imenu regex matches code in docstring

Bug #436285 reported by Jimmy Yuen Ho Wong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Undecided
Andreas Roehler

Bug Description

If you have a module docstring

"""
class hello(object):
    def __init__(self):
        ...
"""

the imenu-generic-expression defined by python-mode.el will match inside a string and report it in imenu. Furthermore, any real definition defined outside of the module docstring is not reported.

Emacs 22.3's python.el does not have this problem. It may be worth a look.

Related branches

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
milestone: none → 6.0
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.