]> git.eshelyaron.com Git - emacs.git/commitdiff
Add case and match to python--treesit-keywords (bug#59720)
authorDaniel Martín <mardani29@yahoo.es>
Wed, 30 Nov 2022 15:11:46 +0000 (16:11 +0100)
committerYuan Fu <casouri@gmail.com>
Fri, 2 Dec 2022 03:59:52 +0000 (19:59 -0800)
* lisp/progmodes/python.el (python--treesit-keywords): Add "case" and
"match" keywords.

lisp/progmodes/python.el

index eb34b93e2fd582b51810b24c1028d1232165f541..4fc5d24e2fb4e487dc684b1a6bdd63cc21a713e6 100644 (file)
@@ -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.