mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fontify "print" and "exec" as functions in python-mode
* lisp/progmodes/python.el (python-font-lock-keywords-level-2): Fontify "print" and "exec" as functions, which is the case in Python 3. (Bug#43298)
This commit is contained in:
parent
e63b49a30b
commit
9f9c9f934a
1 changed files with 0 additions and 3 deletions
|
|
@ -555,9 +555,6 @@ class declarations.")
|
|||
"assert" "else" "if" "pass" "yield" "break" "except" "import" "class"
|
||||
"in" "raise" "continue" "finally" "is" "return" "def" "for" "lambda"
|
||||
"try"
|
||||
;; Python 2:
|
||||
"print" "exec"
|
||||
;; Python 3:
|
||||
;; False, None, and True are listed as keywords on the Python 3
|
||||
;; documentation, but since they also qualify as constants they are
|
||||
;; fontified like that in order to keep font-lock consistent between
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue