aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 3 insertions, 1 deletions
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."
360 ;; documentation, but since they also qualify as constants they are 360 ;; documentation, but since they also qualify as constants they are
361 ;; fontified like that in order to keep font-lock consistent between 361 ;; fontified like that in order to keep font-lock consistent between
362 ;; Python versions. 362 ;; Python versions.
363 "nonlocal") 363 "nonlocal"
364 ;; Extra:
365 "self")
364 symbol-end) 366 symbol-end)
365 ;; functions 367 ;; functions
366 (,(rx symbol-start "def" (1+ space) (group (1+ (or word ?_)))) 368 (,(rx symbol-start "def" (1+ space) (group (1+ (or word ?_))))