Add ExceptionGroup as a Python keyword
authorkobarity <kobarity@gmail.com>
Tue, 30 Apr 2024 05:10:57 +0000 (14:10 +0900)
committerEli Zaretskii <eliz@gnu.org>
Thu, 2 May 2024 09:34:16 +0000 (12:34 +0300)
* lisp/progmodes/python.el
(python-font-lock-keywords-maximum-decoration)
(python--treesit-exceptions): Add ExceptionGroup.  (Bug#70653)

lisp/progmodes/python.el

index 4ff5e9d487809f986c45f0264b079eff132eb432..ecbec18f518edfa3d9f8d4f6837b9ca616f4204d 100644 (file)
@@ -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"
     ))