changeset 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 0a277f9db761
files lisp/ChangeLog lisp/progmodes/python.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <slawomir.nowaczyk.847@student.lu.se>  (tiny change)
+
+	* progmodes/python.el (python-font-lock-keywords): Add `self' and other
+	quasi-keywords.
+
 2006-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* progmodes/python.el: Quieten the compiler about hippie-expand vars.
--- 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 ?_))))