Enhance Function List for Python
Support for async def and colons in argument list Fix #13908, close #14628
This commit is contained in:
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=".*" />
|
||||||
|
@ -38,4 +38,4 @@
|
||||||
</function>
|
</function>
|
||||||
</parser>
|
</parser>
|
||||||
</functionList>
|
</functionList>
|
||||||
</NotepadPlus>
|
</NotepadPlus>
|
||||||
|
|
Loading…
Reference in New Issue