1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00

lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).

This commit is contained in:
Juanma Barranquero 2011-05-13 14:44:48 +02:00
parent e531bdfff1
commit ce1539b46d
2 changed files with 8 additions and 1 deletions

View 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

View File

@ -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)