lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 13 May 2011 12:44:48 +0000 (14:44 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 13 May 2011 12:44:48 +0000 (14:44 +0200)
lisp/ChangeLog
lisp/progmodes/python.el

index aef0246..b1c7fd1 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-13  Juanma Barranquero  <lekktu@gmail.com>
+
+       * progmodes/python.el (python-font-lock-keywords):
+       Add the Python 3.X keyword "nonlocal" (bug#8639).
+
 2011-05-09  Eli Zaretskii  <eliz@gnu.org>
 
        * smerge-mode.el (smerge-resolve): Use null-device rather than a
index d21137b..86f8243 100644 (file)
             "import" "in" "is" "lambda" "not" "or" "pass" "print"
             "raise" "return" "try" "while" "with" "yield"
              ;; Not real keywords, but close enough to be fontified as such
-             "self" "True" "False")
+             "self" "True" "False"
+             ;; Python 3
+             "nonlocal")
         symbol-end)
     (,(rx symbol-start "None" symbol-end)      ; see ยง Keywords in 2.7 manual
      . font-lock-constant-face)