Fix Function list Python parser bad function name detection
Fix #3706, close #3790
This commit is contained in:
parent
95a924f4f3
commit
303874fee0
@ -678,7 +678,7 @@
|
|||||||
mainExpr ="(?<=^class\x20).*?(?=\n\S|\Z)"
|
mainExpr ="(?<=^class\x20).*?(?=\n\S|\Z)"
|
||||||
>
|
>
|
||||||
<className>
|
<className>
|
||||||
<nameExpr expr="\w+(?=[\(|:])" />
|
<nameExpr expr="\w+(?=\s*[\(|:])" />
|
||||||
</className>
|
</className>
|
||||||
<function
|
<function
|
||||||
mainExpr="(?<=def\x20).+?(?=:)"
|
mainExpr="(?<=def\x20).+?(?=:)"
|
||||||
|
Loading…
Reference in New Issue
Block a user