From 5d590831bb3bf07b89dd08670e085fee3415e1e2 Mon Sep 17 00:00:00 2001 From: Semyon Maryasin Date: Mon, 7 Dec 2015 20:03:07 +0300 Subject: [PATCH] Folding for `async def` subroutines Fix folding of "async def" functions I don't know how to make it toggleable, but I suppose it should not cause problems on older python versions anyway --- plugin/pymode.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pymode.vim b/plugin/pymode.vim index 26541ae2..82dd25cb 100644 --- a/plugin/pymode.vim +++ b/plugin/pymode.vim @@ -39,7 +39,7 @@ call pymode#default("g:pymode_folding", 1) " Maximum file length to check for nested class/def statements call pymode#default("g:pymode_folding_nest_limit", 1000) " Change for folding customization (by example enable fold for 'if', 'for') -call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\) \w\+') +call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\) \w\+') " Enable/disable python motion operators call pymode#default("g:pymode_motion", 1) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy