From 97b8d1a8efefaa8947bc15e537c976a6f4a9f0a5 Mon Sep 17 00:00:00 2001 From: kobarity Date: Tue, 30 Apr 2024 14:10:57 +0900 Subject: [PATCH] Add ExceptionGroup as a Python keyword * lisp/progmodes/python.el (python-font-lock-keywords-maximum-decoration) (python--treesit-exceptions): Add ExceptionGroup. (Bug#70653) (cherry picked from commit d15efe965d8317bb5413a8aa8caabcb9f5382206) --- lisp/progmodes/python.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4ff5e9d4878..ecbec18f518 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -785,6 +785,7 @@ sign in chained assignment." "InterruptedError" "IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "RecursionError" "ResourceWarning" "StopAsyncIteration" "TimeoutError" + "ExceptionGroup" ;; OS specific "VMSError" "WindowsError" ) @@ -1052,6 +1053,7 @@ It makes underscores and dots word constituent chars.") "InterruptedError" "IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "RecursionError" "ResourceWarning" "StopAsyncIteration" "TimeoutError" + "ExceptionGroup" ;; OS specific "VMSError" "WindowsError" )) -- 2.39.5