]> granicus.if.org Git - python/commitdiff
(imenu-example--python-method-regexp): Patch from Christian Tanzer:
authorBarry Warsaw <barry@python.org>
Mon, 10 Aug 1998 21:46:24 +0000 (21:46 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 10 Aug 1998 21:46:24 +0000 (21:46 +0000)
"3.67 fixes Imenu as far as classes are concerned, but some default
values for function arguments are still not supported."

This ought to fix that problem.

Misc/python-mode.el

index 7c02026b0eacd10557dcd74bbfbeabca35baf7b3..b0f0ab64f8a10ac4fe3bad872b4657bfbe2e922e 100644 (file)
@@ -778,7 +778,7 @@ package.  Note that the latest X/Emacs releases contain this package.")
    "\\(def[ \t]+"                       ; function definitions start with def
    "\\([a-zA-Z0-9_]+\\)"                ;   name is here
                                        ;   function arguments...
-   "[ \t]*(\\([a-zA-Z0-9_=,\* \t\n]*\\))"
+   "[ \t]*(\\([-+/a-zA-Z0-9_=,\* \t\n.()\"'#]*\\))"
    "\\)"                                ; end of def
    "[ \t]*:"                            ; and then the :
    "\\)"                                ; >>methods and functions<<