diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:35 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:35 -0300 |
| commit | 479a14cc3a9a9a036f34f334d2bab8036932cf71 (patch) | |
| tree | 802c77c8fafa45c502ae07ea936124813504c2ac /lisp/progmodes/python.el | |
| parent | 27d7f16f7ab3fe862ce975c712768045b20840bc (diff) | |
| download | emacs-479a14cc3a9a9a036f34f334d2bab8036932cf71.tar.gz emacs-479a14cc3a9a9a036f34f334d2bab8036932cf71.zip | |
Added self to the list of font-lock-keywords
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
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 ?_)))) |