aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Kangas2024-09-21 14:29:40 +0200
committerStefan Kangas2024-09-21 14:29:40 +0200
commit3cad879c9dd1a7e97dbf28045761f3dfae851136 (patch)
tree606033811339dacd36ae5d30e7e6b9ac0e70696b /lisp/progmodes/python.el
parent7aa5876cdf3df3ac0fa67a1dd06b49077dd0b8cf (diff)
downloademacs-3cad879c9dd1a7e97dbf28045761f3dfae851136.tar.gz
emacs-3cad879c9dd1a7e97dbf28045761f3dfae851136.zip
Add Python keywords "aiter" and "anext"
* lisp/progmodes/python.el (python-font-lock-keywords-level-2) (python--treesit-builtins): Add "aiter" and "anext" keywords, introduced in Python 3.10.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index a767ac6230c..a5cab4a07e5 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -720,7 +720,7 @@ class declarations.")
720 "reload" "unichr" "unicode" "xrange" "apply" "buffer" "coerce" 720 "reload" "unichr" "unicode" "xrange" "apply" "buffer" "coerce"
721 "intern" 721 "intern"
722 ;; Python 3: 722 ;; Python 3:
723 "ascii" "breakpoint" "bytearray" "bytes" "exec" 723 "aiter" "anext" "ascii" "breakpoint" "bytearray" "bytes" "exec"
724 ;; Special attributes: 724 ;; Special attributes:
725 ;; https://docs.python.org/3/reference/datamodel.html 725 ;; https://docs.python.org/3/reference/datamodel.html
726 "__annotations__" "__closure__" "__code__" 726 "__annotations__" "__closure__" "__code__"
@@ -1018,7 +1018,7 @@ It makes underscores and dots word constituent chars.")
1018 1018
1019(defvar python--treesit-builtins 1019(defvar python--treesit-builtins
1020 (append python--treesit-builtin-types 1020 (append python--treesit-builtin-types
1021 '("abs" "all" "any" "ascii" "bin" "breakpoint" 1021 '("abs" "aiter" "all" "anext" "any" "ascii" "bin" "breakpoint"
1022 "callable" "chr" "classmethod" "compile" 1022 "callable" "chr" "classmethod" "compile"
1023 "delattr" "dir" "divmod" "enumerate" "eval" "exec" 1023 "delattr" "dir" "divmod" "enumerate" "eval" "exec"
1024 "filter" "format" "getattr" "globals" 1024 "filter" "format" "getattr" "globals"