diff options
author | Daniel MartÃn <mardani29@yahoo.es> | 2022-11-30 16:11:46 +0100 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-01 19:59:52 -0800 |
commit | ad0563855fab51c4d40d48ea9fe1ee36e69b29bf (patch) | |
tree | 7d8b5b892d3e1c1f0971078c5a129147b1b0225e | |
parent | 16e68e64f924e99d0ad823dcfa9f7b7cc8975b50 (diff) | |
download | emacs-ad0563855fab51c4d40d48ea9fe1ee36e69b29bf.tar.gz |
Add case and match to python--treesit-keywords (bug#59720)
* lisp/progmodes/python.el (python--treesit-keywords): Add "case" and
"match" keywords.
-rw-r--r-- | lisp/progmodes/python.el | 4 |
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.") ;; 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. |