]> git.eshelyaron.com Git - emacs.git/commitdiff
Add ExceptionGroup as a Python keyword
authorkobarity <kobarity@gmail.com>
Tue, 30 Apr 2024 05:10:57 +0000 (14:10 +0900)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:33:39 +0000 (18:33 +0200)
* 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

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"
     ))