Add TODO for Python syntax folding bug

This commit is contained in:
Kenneth Benzie 2018-01-21 20:30:13 +00:00
parent 0fe8e5dfed
commit 02370ce6e7

View File

@ -36,6 +36,11 @@ setlocal foldexpr=PythonFold(v:lnum)
" Custom fold function greedyily matches following blank lines " Custom fold function greedyily matches following blank lines
function! PythonFold(lnum) function! PythonFold(lnum)
let l:line = getline(a: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 " Blank lines, comments, and docstrings use previous fold level
if l:line =~ '^\(\s*\|#.*\|"\(""\)\=.*\)$' if l:line =~ '^\(\s*\|#.*\|"\(""\)\=.*\)$'