diff options
| author | Stefan Monnier | 2006-09-09 19:48:36 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-09-09 19:48:36 +0000 |
| commit | 0b01facaa26b182854259fb7a08a255fe8cc364a (patch) | |
| tree | 5b8854d52f1bd681cfea7461b5e100f95584eb1e /lisp/progmodes/python.el | |
| parent | d8ca7d34751c7602f50e8ad4860a026f26f3f24a (diff) | |
| download | emacs-0b01facaa26b182854259fb7a08a255fe8cc364a.tar.gz emacs-0b01facaa26b182854259fb7a08a255fe8cc364a.zip | |
(python-font-lock-keywords): Add `self' and other quasi-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 1299ff368d9..712d75afff9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -96,7 +96,9 @@ | |||
| 96 | "import" "in" "is" "lambda" "not" "or" "pass" "print" | 96 | "import" "in" "is" "lambda" "not" "or" "pass" "print" |
| 97 | "raise" "return" "try" "while" "yield" | 97 | "raise" "return" "try" "while" "yield" |
| 98 | ;; Future keywords | 98 | ;; Future keywords |
| 99 | "as" "None") | 99 | "as" "None" |
| 100 | ;; Not real keywords, but close enough to be fontified as such | ||
| 101 | "self" "True" "False") | ||
| 100 | symbol-end) | 102 | symbol-end) |
| 101 | ;; Definitions | 103 | ;; Definitions |
| 102 | (,(rx symbol-start (group "class") (1+ space) (group (1+ (or word ?_)))) | 104 | (,(rx symbol-start (group "class") (1+ space) (group (1+ (or word ?_)))) |