diff options
author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2025-01-21 18:34:54 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2025-01-25 12:51:27 +0200 |
commit | 0514619b2c944ae17fbf649496595c5e866ff785 (patch) | |
tree | e91cddb00e554e6a8c318f46ae1fa7ddb6382d7b /lisp/emacs-lisp/lisp.el | |
parent | 192355e54af91ad6e7d1343071a749e1ced29400 (diff) | |
download | emacs-0514619b2c944ae17fbf649496595c5e866ff785.tar.gz emacs-0514619b2c944ae17fbf649496595c5e866ff785.tar.bz2 emacs-0514619b2c944ae17fbf649496595c5e866ff785.zip |
python-mode: add 'exit' and 'quit' to the list of block-enders
'exit()' and 'quit()' end the current codeflow, there can't be
any code past it, similarly to 'return', 'continue', etc. So
when calculating indentation for the line next to 'exit()',
'os.exit()', 'os._exit()', 'sys.exit()' and 'quit()', decrease
the indentation level.
* /lisp/progmodes/python.el (python-rx): Add 'exit()', 'os.exit()',
'os._exit()', 'sys.exit()', 'quit' to the list of block-enders.
(Bug#75729)
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions