Subject: bug#75729: [PATCH] python-mode: add `exit` to the list of block-enders

From: Stefan Kangas <[email-masked]>
Date: Tue, 21 Jan 2025 10:52:51 -0800

Konstantin Kharlamov <[email-masked]> writes:

> diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
> index 16c296a8f86..2feb9f47e1a 100644
> --- a/lisp/progmodes/python.el
> +++ b/lisp/progmodes/python.el
> @@ -442,7 +442,8 @@ python-rx
>                                      symbol-end))
>              (block-ender       (seq symbol-start
>                                      (or
> -                                     "break" "continue" "pass" "raise" "return")
> +                                     "break" "continue" "pass" "raise" "return"
> +                                     "exit")
>                                      symbol-end))
>              (decorator         (seq line-start (* space) ?@ (any letter ?_)
>                                      (* (any word ?_))))
> --
> 2.48.1

Could you describe what behaviour changes this will result in?

I recommend something brief about that to the commit message too.