aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorDaniel Martín2022-11-30 16:11:46 +0100
committerYuan Fu2022-12-01 19:59:52 -0800
commitad0563855fab51c4d40d48ea9fe1ee36e69b29bf (patch)
tree7d8b5b892d3e1c1f0971078c5a129147b1b0225e /lisp/progmodes/python.el
parent16e68e64f924e99d0ad823dcfa9f7b7cc8975b50 (diff)
downloademacs-ad0563855fab51c4d40d48ea9fe1ee36e69b29bf.tar.gz
emacs-ad0563855fab51c4d40d48ea9fe1ee36e69b29bf.zip
Add case and match to python--treesit-keywords (bug#59720)
* lisp/progmodes/python.el (python--treesit-keywords): Add "case" and "match" keywords.
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 eb34b93e2fd..4fc5d24e2fb 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -967,9 +967,9 @@ It makes underscores and dots word constituent chars.")
967;; merge with `python-font-lock-keywords-level-2'. 967;; merge with `python-font-lock-keywords-level-2'.
968 968
969(defvar python--treesit-keywords 969(defvar python--treesit-keywords
970 '("as" "assert" "async" "await" "break" "class" "continue" "def" 970 '("as" "assert" "async" "await" "break" "case" "class" "continue" "def"
971 "del" "elif" "else" "except" "exec" "finally" "for" "from" 971 "del" "elif" "else" "except" "exec" "finally" "for" "from"
972 "global" "if" "import" "lambda" "nonlocal" "pass" "print" 972 "global" "if" "import" "lambda" "match" "nonlocal" "pass" "print"
973 "raise" "return" "try" "while" "with" "yield" 973 "raise" "return" "try" "while" "with" "yield"
974 ;; These are technically operators, but we fontify them as 974 ;; These are technically operators, but we fontify them as
975 ;; keywords. 975 ;; keywords.