From: Barry Warsaw Date: Mon, 10 Aug 1998 21:46:24 +0000 (+0000) Subject: (imenu-example--python-method-regexp): Patch from Christian Tanzer: X-Git-Tag: v1.5.2a1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=650e8a6db2dbcfe01938d28d47b133e22d31ce74;p=thirdparty%2FPython%2Fcpython.git (imenu-example--python-method-regexp): Patch from Christian Tanzer: "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. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 7c02026b0eac..b0f0ab64f8a1 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -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<<