From: Stefan Kangas Date: Mon, 11 Oct 2021 13:10:26 +0000 (+0200) Subject: Fontify "print" and "exec" as functions in python-mode X-Git-Tag: emacs-29.0.90~3671^2~614 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f9c9f934ac9abed84290df410431e393cd542a8;p=emacs.git 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) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index b1f61c89a41..4ee8c6279a8 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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