From: Colin Woodbury Date: Sat, 12 Mar 2022 17:46:55 +0000 (+0100) Subject: * lisp/progmodes/python.el: Account for new keywords. X-Git-Tag: emacs-29.0.90~1931^2~1175 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=139042eb8629e6fd49b2c3002a8fc4d1aabd174d;p=emacs.git * lisp/progmodes/python.el: Account for new keywords. * lisp/progmodes/python.el (python-font-lock-keywords-level-2): As of Python 3.10, Python has structured pattern matching. This adds two new keywords which need to be highlighted (bug#54345). --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d83290fe457..c4d8b123a86 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -563,6 +563,8 @@ class declarations.") ;; Python 3.5+ PEP492 (and "async" (+ space) (or "def" "for" "with")) "await" + ;; Python 3.10+ + "match" "case" ;; Extra: "self") symbol-end)