1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

font-lock special attributes in python-mode

* lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add
special attributes (bug#38318).
This commit is contained in:
Hong Xu 2019-11-22 14:34:59 +01:00 committed by Lars Ingebrigtsen
parent f5667953f7
commit f9b8c74af1

View file

@ -567,8 +567,14 @@ class declarations.")
"intern"
;; Python 3:
"ascii" "breakpoint" "bytearray" "bytes" "exec"
;; Extra:
"__all__" "__doc__" "__name__" "__package__")
;; Special attributes:
;; https://docs.python.org/3/reference/datamodel.html
"__annotations__" "__closure__" "__code__"
"__defaults__" "__dict__" "__doc__" "__globals__"
"__kwdefaults__" "__name__" "__module__" "__package__"
"__qualname__"
;; Extras:
"__all__")
symbol-end) . font-lock-builtin-face))
"Font lock keywords to use in python-mode for level 2 decoration.