Add 'font-lock-maximum-decoration' levels for Python
commit36b64e087ea332505ae9a40f90af45e678db2255
authorCharles A. Roelli <charles@aurox.ch>
Thu, 19 Jul 2018 20:06:07 +0000 (19 22:06 +0200)
committerCharles A. Roelli <charles@aurox.ch>
Thu, 19 Jul 2018 20:06:07 +0000 (19 22:06 +0200)
tree606c3102daa3d80c7d5e9957e50b9a06534b6db2
parent5934122c1f3371a07b9f041aec693d762e9d8767
Add 'font-lock-maximum-decoration' levels for Python

* etc/NEWS: New entry under Python mode.

* lisp/progmodes/python.el (python-font-lock-keywords-level-1)
(python-font-lock-keywords-level-2)
(python-font-lock-keywords-maximum-decoration): New variables
based off the incumbent 'python-font-lock-keywords'.
(python-font-lock-keywords): Change it to a list of the new
symbols, for use in the 'car' of 'font-lock-defaults'.
(python-mode): Set the 'car' of 'font-lock-defaults' to the
value of 'python-font-lock-keywords', instead of the symbol
'python-font-lock-keywords'.
etc/NEWS
lisp/progmodes/python.el