python-mode: Remove special outline-heading-end-regexp

It doesn't work well with the new type annotation syntax introduced in
Python 3.5.

* lisp/progmodes/python.el (python-mode): Remove buffer-local setting
of outline-heading-end-regexp.  (Bug#53913)
This commit is contained in:
Augusto Stoffel 2022-08-13 18:55:48 +02:00 committed by Stefan Kangas
parent 275cef9e06
commit 503112d1f0

View file

@ -5872,7 +5872,6 @@ REPORT-FN is Flymake's callback function."
nil))
(setq-local outline-regexp (python-rx (* space) block-start))
(setq-local outline-heading-end-regexp ":[^\n]*\n")
(setq-local outline-level
(lambda ()
"`outline-level' function for Python mode."