From 139042eb8629e6fd49b2c3002a8fc4d1aabd174d Mon Sep 17 00:00:00 2001 From: Colin Woodbury Date: Sat, 12 Mar 2022 18:46:55 +0100 Subject: [PATCH] * 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). --- lisp/progmodes/python.el | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2