]> git.eshelyaron.com Git - emacs.git/commitdiff
Added self to the list of font-lock-keywords
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:35 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:35 +0000 (00:03 -0300)
lisp/progmodes/python.el

index 51727be901a17564344e3646049860096b0a017b..5527d851d1d64bf29c5315006cb79acf096cceb9 100644 (file)
@@ -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 ?_))))