Enhance Function List for Python

Support for async def and colons in argument list

Fix #13908, close #14628
This commit is contained in:
Дим Щ 2024-01-23 15:26:12 +03:00 committed by Don Ho
parent c6e433f70b
commit e600c35ad2
1 changed files with 3 additions and 3 deletions

View File

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