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*[\(|:])" />
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue