Add TODO for Python syntax folding bug
This commit is contained in:
parent
0fe8e5dfed
commit
02370ce6e7
@ -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*\|#.*\|"\(""\)\=.*\)$'
|
||||
|
Loading…
x
Reference in New Issue
Block a user