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:
parent
275cef9e06
commit
503112d1f0
1 changed files with 0 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue