emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100578: lisp/progmodes/python.el:


From: Juanma Barranquero
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-23 r100578: lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).
Date: Fri, 13 May 2011 14:44:48 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 100578
fixes bug(s): http://debbugs.gnu.org/8639
committer: Juanma Barranquero <address@hidden>
branch nick: emacs-23
timestamp: Fri 2011-05-13 14:44:48 +0200
message:
  lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).
modified:
  lisp/ChangeLog
  lisp/progmodes/python.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-05-09 15:21:54 +0000
+++ b/lisp/ChangeLog    2011-05-13 12:44:48 +0000
@@ -1,3 +1,8 @@
+2011-05-13  Juanma Barranquero  <address@hidden>
+
+       * progmodes/python.el (python-font-lock-keywords):
+       Add the Python 3.X keyword "nonlocal" (bug#8639).
+
 2011-05-09  Eli Zaretskii  <address@hidden>
 
        * smerge-mode.el (smerge-resolve): Use null-device rather than a

=== modified file 'lisp/progmodes/python.el'
--- a/lisp/progmodes/python.el  2011-01-03 03:49:13 +0000
+++ b/lisp/progmodes/python.el  2011-05-13 12:44:48 +0000
@@ -100,7 +100,9 @@
             "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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]