Commit f9b8c74a authored by Hong Xu's avatar Hong Xu Committed by Lars Ingebrigtsen

font-lock special attributes in python-mode

* lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add
special attributes (bug#38318).
parent f5667953
Pipeline #4134 failed with stage
in 59 minutes and 44 seconds
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment