# HG changeset patch # User Stefan Monnier # Date 1157831316 0 # Node ID 298499495f06858003320864670c6384f57b1620 # Parent a15622a85c05d692a21c771594e8416ca1458434 (python-font-lock-keywords): Add `self' and other quasi-keywords. diff -r a15622a85c05 -r 298499495f06 lisp/ChangeLog --- a/lisp/ChangeLog Sat Sep 09 19:42:35 2006 +0000 +++ b/lisp/ChangeLog Sat Sep 09 19:48:36 2006 +0000 @@ -1,3 +1,8 @@ +2006-09-09 Slawomir Nowaczyk (tiny change) + + * progmodes/python.el (python-font-lock-keywords): Add `self' and other + quasi-keywords. + 2006-09-09 Stefan Monnier * progmodes/python.el: Quieten the compiler about hippie-expand vars. diff -r a15622a85c05 -r 298499495f06 lisp/progmodes/python.el --- 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 ?_))))