Skip to content

Commit

Permalink
Fontify "print" and "exec" as functions in python-mode
Browse files Browse the repository at this point in the history
This change was first made on master, but on closer consideration it
is better to fix this bug already in Emacs 28.1.

* 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)  Do not merge to master.
  • Loading branch information
skangas committed Oct 11, 2021
1 parent 47e09d1 commit 392d670
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lisp/progmodes/python.el
Expand Up @@ -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
Expand Down

0 comments on commit 392d670

Please sign in to comment.