Mercurial > emacs
diff lisp/progmodes/python.el @ 72762:298499495f06
(python-font-lock-keywords): Add `self' and other quasi-keywords.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Sat, 09 Sep 2006 19:48:36 +0000 |
| parents | a15622a85c05 |
| children | 063a265bc04f a1a25ac6c88a |
line wrap: on
line diff
--- a/lisp/progmodes/python.el Sat Sep 09 19:42:35 2006 +0000 +++ b/lisp/progmodes/python.el Sat Sep 09 19:48:36 2006 +0000 @@ -96,7 +96,9 @@ "import" "in" "is" "lambda" "not" "or" "pass" "print" "raise" "return" "try" "while" "yield" ;; Future keywords - "as" "None") + "as" "None" + ;; Not real keywords, but close enough to be fontified as such + "self" "True" "False") symbol-end) ;; Definitions (,(rx symbol-start (group "class") (1+ space) (group (1+ (or word ?_))))
