]> git.eshelyaron.com Git - emacs.git/commitdiff
Fontify "print" and "exec" as functions in python-mode
authorStefan Kangas <stefan@marxist.se>
Mon, 11 Oct 2021 13:10:26 +0000 (15:10 +0200)
committerStefan Kangas <stefan@marxist.se>
Mon, 11 Oct 2021 13:18:54 +0000 (15:18 +0200)
* 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)

lisp/progmodes/python.el

index b1f61c89a41c5c4a5f1fb49daf2e95cbbd385175..4ee8c6279a8eedcf7e9d548dff23ad71de8e0c06 100644 (file)
@@ -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