emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 392d670 1/2: Fontify "print" and "exec" as functions in python-


From: Stefan Kangas
Subject: emacs-28 392d670 1/2: Fontify "print" and "exec" as functions in python-mode
Date: Mon, 11 Oct 2021 15:24:47 -0400 (EDT)

branch: emacs-28
commit 392d6708a5b0a1b291f50986cb31552c9d4786df
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Fontify "print" and "exec" as functions in python-mode
    
    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.
---
 lisp/progmodes/python.el | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index c58ac6f..de6cfcb 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]