From 02370ce6e7dba6005a62de4ad2d204a2962a476c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 21 Jan 2018 20:30:13 +0000 Subject: [PATCH] Add TODO for Python syntax folding bug --- after/ftplugin/python.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 5e1125d..b50b930 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -36,6 +36,11 @@ setlocal foldexpr=PythonFold(v:lnum) " Custom fold function greedyily matches following blank lines function! PythonFold(lnum) let l:line = getline(a:lnum) + " TODO: Folding breaks around method decorators: + " class Class(object): + " @property + " def method(self): + " pass " Blank lines, comments, and docstrings use previous fold level if l:line =~ '^\(\s*\|#.*\|"\(""\)\=.*\)$'