]> git.eshelyaron.com Git - emacs.git/commitdiff
(python-font-lock-keywords): Add `self' and other quasi-keywords.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Sep 2006 19:48:36 +0000 (19:48 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Sep 2006 19:48:36 +0000 (19:48 +0000)
lisp/ChangeLog
lisp/progmodes/python.el

index 835914c12efcbf4b593641cb06ab478ee908bb55..83129833d2b9d664c5ad826db73fc45658a7d3e3 100644 (file)
@@ -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.
index 1299ff368d94a044a1d4dc86b5bb235063e67310..712d75afff983e338daaaea44b30749d31c86e1e 100644 (file)
@@ -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 ?_))))