Update special attributes for Python 3.13
* lisp/progmodes/python.el (python-font-lock-keywords-level-2) (python--treesit-special-attributes): Update special attributes, making it current for Python 3.13.
This commit is contained in:
parent
e8b8a1121a
commit
11954a3a0a
1 changed files with 11 additions and 8 deletions
|
@ -718,10 +718,11 @@ class declarations.")
|
|||
"aiter" "anext" "ascii" "breakpoint" "bytearray" "bytes" "exec"
|
||||
;; Special attributes:
|
||||
;; https://docs.python.org/3/reference/datamodel.html
|
||||
"__annotations__" "__closure__" "__code__"
|
||||
"__defaults__" "__dict__" "__doc__" "__globals__"
|
||||
"__kwdefaults__" "__name__" "__module__" "__package__"
|
||||
"__qualname__"
|
||||
"__annotations__" "__bases__" "__closure__" "__code__"
|
||||
"__defaults__" "__dict__" "__doc__" "__firstlineno__"
|
||||
"__globals__" "__kwdefaults__" "__name__" "__module__"
|
||||
"__mro__" "__package__" "__qualname__"
|
||||
"__static_attributes__" "__type_params__"
|
||||
;; Extras:
|
||||
"__all__")
|
||||
symbol-end) . font-lock-builtin-face))
|
||||
|
@ -1034,10 +1035,12 @@ It makes underscores and dots word constituent chars.")
|
|||
">>" ">>=" "|" "|=" "~" "@" "@="))
|
||||
|
||||
(defvar python--treesit-special-attributes
|
||||
'("__annotations__" "__closure__" "__code__"
|
||||
"__defaults__" "__dict__" "__doc__" "__globals__"
|
||||
"__kwdefaults__" "__name__" "__module__" "__package__"
|
||||
"__qualname__" "__all__"))
|
||||
'("__annotations__" "__bases__" "__closure__" "__code__"
|
||||
"__defaults__" "__dict__" "__doc__" "__firstlineno__"
|
||||
"__globals__" "__kwdefaults__" "__name__" "__module__"
|
||||
"__mro__" "__package__" "__qualname__"
|
||||
"__static_attributes__" "__type_params__"
|
||||
"__all__"))
|
||||
|
||||
(defvar python--treesit-exceptions
|
||||
'(;; Python 2 and 3:
|
||||
|
|
Loading…
Add table
Reference in a new issue