From 479a14cc3a9a9a036f34f334d2bab8036932cf71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:35 -0300 Subject: [PATCH] Added self to the list of font-lock-keywords --- lisp/progmodes/python.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ?_)))) -- 2.39.2