8000 Folding for `async def` subroutines · python-mode/python-mode@6a901cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a901cd

Browse files
MarSoftbrycepg
authored andcommitted
Folding for async def subroutines
Fix folding of "async def" functions. The async keyword will fold for python 2, however that shouldn't be a problem.
1 parent da4bfe5 commit 6a901cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ call pymode#default("g:pymode_folding", 1)
3939
" Maximum file length to check for nested class/def statements
4040
call pymode#default("g:pymode_folding_nest_limit", 1000)
4141
" Change for folding customization (by example enable fold for 'if', 'for')
42-
call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\) \w\+')
42+
call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\) \w\+')
4343

4444
" Enable/disable python motion operators
4545
call pymode#default("g:pymode_motion", 1)

0 commit comments

Comments
 (0)
0