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:
parent
f5667953f7
commit
f9b8c74af1
1 changed files with 8 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue