diff options
| author | Stefan Kangas | 2021-10-11 15:10:26 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-10-11 15:18:54 +0200 |
| commit | 9f9c9f934ac9abed84290df410431e393cd542a8 (patch) | |
| tree | 3f29165f7ebd19071db3601c26228fb081803c12 /lisp/progmodes/python.el | |
| parent | e63b49a30bf0993188a577715ef742f0545bbdd7 (diff) | |
| download | emacs-9f9c9f934ac9abed84290df410431e393cd542a8.tar.gz emacs-9f9c9f934ac9abed84290df410431e393cd542a8.zip | |
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)
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 0 insertions, 3 deletions
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.") | |||
| 555 | "assert" "else" "if" "pass" "yield" "break" "except" "import" "class" | 555 | "assert" "else" "if" "pass" "yield" "break" "except" "import" "class" |
| 556 | "in" "raise" "continue" "finally" "is" "return" "def" "for" "lambda" | 556 | "in" "raise" "continue" "finally" "is" "return" "def" "for" "lambda" |
| 557 | "try" | 557 | "try" |
| 558 | ;; Python 2: | ||
| 559 | "print" "exec" | ||
| 560 | ;; Python 3: | ||
| 561 | ;; False, None, and True are listed as keywords on the Python 3 | 558 | ;; False, None, and True are listed as keywords on the Python 3 |
| 562 | ;; documentation, but since they also qualify as constants they are | 559 | ;; documentation, but since they also qualify as constants they are |
| 563 | ;; fontified like that in order to keep font-lock consistent between | 560 | ;; fontified like that in order to keep font-lock consistent between |