From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:35 +0000 (-0300) Subject: Added self to the list of font-lock-keywords X-Git-Tag: emacs-24.2.90~1199^2~509 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=479a14cc3a9a9a036f34f334d2bab8036932cf71;p=emacs.git Added self to the list of font-lock-keywords --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 51727be901a..5527d851d1d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -360,7 +360,9 @@ This variant of `rx' supports common python named REGEXPS." ;; documentation, but since they also qualify as constants they are ;; fontified like that in order to keep font-lock consistent between ;; Python versions. - "nonlocal") + "nonlocal" + ;; Extra: + "self") symbol-end) ;; functions (,(rx symbol-start "def" (1+ space) (group (1+ (or word ?_))))