Subject: [PATCH] Account for new Python 3.10 keywords

From: Colin Woodbury <[email-masked]>
Date: Fri, 11 Mar 2022 15:28:30 -0800

I noticed these keywords unhighlighted even on `master`, and this patch fixes that.

Cheers,

Colin
>From a20b88001800a89821680ce6b93eb7aed887f325 Mon Sep 17 00:00:00 2001
From: Colin Woodbury <[email-masked]>
Date: Fri, 11 Mar 2022 15:17:12 -0800
Subject: [PATCH] * lisp/progmodes/python.el: Account for new keywords.

As of Python 3.10, Python has structured pattern matching. This adds two
new keywords which need to be highlighted.
---
 lisp/progmodes/python.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d83290fe45..c4d8b123a8 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.35.1