Enhance Function List for Python

Support for async def and colons in argument list

Fix #13908, close #14628
pull/14701/head
Дим Щ 10 months ago committed by Don Ho
parent c6e433f70b
commit e600c35ad2

@ -22,7 +22,7 @@
<nameExpr expr="\w+(?=\s*[\(|:])" /> <nameExpr expr="\w+(?=\s*[\(|:])" />
</className> </className>
<function <function
mainExpr="\sdef\x20\K.+?(?=:)" mainExpr="\s(async )?def\x20\K.+?(?=(:$|,$|:\s*#))"
> >
<functionName> <functionName>
<funcNameExpr expr=".*" /> <funcNameExpr expr=".*" />
@ -30,7 +30,7 @@
</function> </function>
</classRange> </classRange>
<function <function
mainExpr="^def\x20\K.+?(?=:)" mainExpr="^(async )?def\x20\K.+?(?=(:$|,$|:\s*#))"
> >
<functionName> <functionName>
<nameExpr expr=".*" /> <nameExpr expr=".*" />

Loading…
Cancel
Save