Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a901cd

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

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
callpymode#default("g:pymode_folding_nest_limit",1000)
4141
" Change for folding customization (by example enable fold for 'if', 'for')
42-
callpymode#default("g:pymode_folding_regex",'^\s*\%(class\|def\) \w\+')
42+
callpymode#default("g:pymode_folding_regex",'^\s*\%(class\|def\|async\s\+def\) \w\+')
4343

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp