]> git.eshelyaron.com Git - emacs.git/commitdiff
python-mode: Remove special outline-heading-end-regexp
authorAugusto Stoffel <arstoffel@gmail.com>
Sat, 13 Aug 2022 16:55:48 +0000 (18:55 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 19 Aug 2022 12:59:27 +0000 (14:59 +0200)
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)

lisp/progmodes/python.el

index 5fffb4b7d3d4920b3c26f75d0575bd4d4991da51..62fc45b2adf6977a23c8e71dc95cc00ed656a850 100644 (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."