From: Stefan Monnier Date: Sat, 9 Sep 2006 19:48:36 +0000 (+0000) Subject: (python-font-lock-keywords): Add `self' and other quasi-keywords. X-Git-Tag: emacs-pretest-22.0.90~659 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b01facaa26b182854259fb7a08a255fe8cc364a;p=emacs.git (python-font-lock-keywords): Add `self' and other quasi-keywords. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 835914c12ef..83129833d2b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --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 @@ "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 ?_))))