diff options
| author | kobarity | 2025-02-05 00:02:05 +0900 |
|---|---|---|
| committer | Stefan Kangas | 2025-02-04 23:28:00 +0100 |
| commit | 999d054dc1e265f1a39c10035a3a3f7f75de8445 (patch) | |
| tree | 7f2b906f03434ce890fdbb6b0db37b6b7843bd19 /java/org/gnu | |
| parent | 7d85f678f33029cc874da2aaa89cf95a45403146 (diff) | |
| download | emacs-999d054dc1e265f1a39c10035a3a3f7f75de8445.tar.gz emacs-999d054dc1e265f1a39c10035a3a3f7f75de8445.zip | |
Make it configurable to highlight Python 2 builtins
By default, Python 2-only builtins are not highlighted.
* lisp/progmodes/python.el (python-2-support): New defcustom.
(python-font-lock-builtin-types)
(python-font-lock-builtins-python3)
(python-font-lock-builtins-python2)
(python-font-lock-builtins)
(python-font-lock-special-attributes)
(python-font-lock-builtin-exceptions-python3)
(python-font-lock-builtin-exceptions-python2)
(python-font-lock-builtin-exceptions): New variables.
(python-font-lock-keywords-level-2)
(python-font-lock-keywords-maximum-decoration)
(python--treesit-builtin-types)
(python--treesit-builtins)
(python--treesit-special-attributes)
(python--treesit-exceptions): Use new variables.
Co-authored-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Co-authored-by: Stefan Kangas <stefankangas@gmail.com>
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions