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

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>

Date: Tue, 21 Jan 2025 15:43:02 UTC

Severity: wishlist

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 75729 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: kobarity <kobarity <at> gmail.com>, Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 75729 <at> debbugs.gnu.org
Subject: Re: bug#75729: [PATCH v3] python-mode: add `exit` to the list of
 block-enders
Date: Wed, 22 Jan 2025 14:51:08 -0600
kobarity <kobarity <at> gmail.com> writes:

> This is a bit complicated, but how about the following code?
>
>             (block-ender       (seq
>                                 symbol-start
>                                 (or
>                                  (seq (or
>                                        "break" "continue" "pass" "raise" "return")
>                                   symbol-end)
>                                  (seq
>                                   (or
>                                    (seq (? (or (seq "os." (? ?_)) "sys.")) "exit")
>                                    "quit") (* space) "("))))

LGTM.




This bug report was last modified 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.