[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 ad0563855f 2/2: Add case and match to python--treesit-keywords
From: |
Yuan Fu |
Subject: |
emacs-29 ad0563855f 2/2: Add case and match to python--treesit-keywords (bug#59720) |
Date: |
Thu, 1 Dec 2022 23:02:35 -0500 (EST) |
branch: emacs-29
commit ad0563855fab51c4d40d48ea9fe1ee36e69b29bf
Author: Daniel MartÃn <mardani29@yahoo.es>
Commit: Yuan Fu <casouri@gmail.com>
Add case and match to python--treesit-keywords (bug#59720)
* lisp/progmodes/python.el (python--treesit-keywords): Add "case" and
"match" keywords.
---
lisp/progmodes/python.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index eb34b93e2f..4fc5d24e2f 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -967,9 +967,9 @@ It makes underscores and dots word constituent chars.")
;; merge with `python-font-lock-keywords-level-2'.
(defvar python--treesit-keywords
- '("as" "assert" "async" "await" "break" "class" "continue" "def"
+ '("as" "assert" "async" "await" "break" "case" "class" "continue" "def"
"del" "elif" "else" "except" "exec" "finally" "for" "from"
- "global" "if" "import" "lambda" "nonlocal" "pass" "print"
+ "global" "if" "import" "lambda" "match" "nonlocal" "pass" "print"
"raise" "return" "try" "while" "with" "yield"
;; These are technically operators, but we fontify them as
;; keywords.