diff options
| author | kobarity | 2024-04-30 14:10:57 +0900 |
|---|---|---|
| committer | Eli Zaretskii | 2024-05-02 12:34:16 +0300 |
| commit | d15efe965d8317bb5413a8aa8caabcb9f5382206 (patch) | |
| tree | 02ae431f641869ed5faeca089cdaa1e274732c01 | |
| parent | ef6ffbdc79645e719d3b5ef23c9200405c58c61e (diff) | |
| download | emacs-d15efe965d8317bb5413a8aa8caabcb9f5382206.tar.gz emacs-d15efe965d8317bb5413a8aa8caabcb9f5382206.zip | |
Add ExceptionGroup as a Python keyword
* lisp/progmodes/python.el
(python-font-lock-keywords-maximum-decoration)
(python--treesit-exceptions): Add ExceptionGroup. (Bug#70653)
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 2 insertions, 0 deletions
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." | |||
| 785 | "InterruptedError" "IsADirectoryError" "NotADirectoryError" | 785 | "InterruptedError" "IsADirectoryError" "NotADirectoryError" |
| 786 | "PermissionError" "ProcessLookupError" "RecursionError" | 786 | "PermissionError" "ProcessLookupError" "RecursionError" |
| 787 | "ResourceWarning" "StopAsyncIteration" "TimeoutError" | 787 | "ResourceWarning" "StopAsyncIteration" "TimeoutError" |
| 788 | "ExceptionGroup" | ||
| 788 | ;; OS specific | 789 | ;; OS specific |
| 789 | "VMSError" "WindowsError" | 790 | "VMSError" "WindowsError" |
| 790 | ) | 791 | ) |
| @@ -1052,6 +1053,7 @@ It makes underscores and dots word constituent chars.") | |||
| 1052 | "InterruptedError" "IsADirectoryError" "NotADirectoryError" | 1053 | "InterruptedError" "IsADirectoryError" "NotADirectoryError" |
| 1053 | "PermissionError" "ProcessLookupError" "RecursionError" | 1054 | "PermissionError" "ProcessLookupError" "RecursionError" |
| 1054 | "ResourceWarning" "StopAsyncIteration" "TimeoutError" | 1055 | "ResourceWarning" "StopAsyncIteration" "TimeoutError" |
| 1056 | "ExceptionGroup" | ||
| 1055 | ;; OS specific | 1057 | ;; OS specific |
| 1056 | "VMSError" "WindowsError" | 1058 | "VMSError" "WindowsError" |
| 1057 | )) | 1059 | )) |