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:
parent
e531bdfff1
commit
ce1539b46d
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user