From: Daniel Martín Date: Wed, 30 Nov 2022 15:11:46 +0000 (+0100) Subject: Add case and match to python--treesit-keywords (bug#59720) X-Git-Tag: emacs-29.0.90~1384 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ad0563855fab51c4d40d48ea9fe1ee36e69b29bf;p=emacs.git Add case and match to python--treesit-keywords (bug#59720) * lisp/progmodes/python.el (python--treesit-keywords): Add "case" and "match" keywords. --- 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.") ;; 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.