Add case and match to python--treesit-keywords (bug#59720)

* lisp/progmodes/python.el (python--treesit-keywords): Add "case" and
"match" keywords.
This commit is contained in:
Daniel Martín 2022-11-30 16:11:46 +01:00 committed by Yuan Fu
parent 16e68e64f9
commit ad0563855f
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View 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.