[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 139042eb86 1/2: * lisp/progmodes/python.el: Account for new keywo
From: |
Lars Ingebrigtsen |
Subject: |
master 139042eb86 1/2: * lisp/progmodes/python.el: Account for new keywords. |
Date: |
Sat, 12 Mar 2022 12:54:50 -0500 (EST) |
branch: master
commit 139042eb8629e6fd49b2c3002a8fc4d1aabd174d
Author: Colin Woodbury <colin@fosskers.ca>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
* 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 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)