[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f9b8c74: font-lock special attributes in python-mode
From: |
Lars Ingebrigtsen |
Subject: |
master f9b8c74: font-lock special attributes in python-mode |
Date: |
Fri, 22 Nov 2019 08:35:12 -0500 (EST) |
branch: master
commit f9b8c74af1817add9ff5b5b73da574b81d91f68a
Author: Hong Xu <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
font-lock special attributes in python-mode
* lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add
special attributes (bug#38318).
---
lisp/progmodes/python.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 37e0ccf..e720c6e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f9b8c74: font-lock special attributes in python-mode,
Lars Ingebrigtsen <=