Fix Python the variable "def" not working correctly in Function List

Fix #3645, close #3672
This commit is contained in:
Don HO 2020-08-28 14:36:23 +02:00
parent fad747300a
commit 71b532710f
2 changed files with 4 additions and 2 deletions

View File

@ -82,6 +82,8 @@ for _ in xrange(m):
--------------------------------------------------------------------------------
"""
ssdef = 20
USER_DEF = 1000
def dfs(G, s):
vis, S = set([s]), [s]

View File

@ -681,7 +681,7 @@
<nameExpr expr="\w+(?=\s*[\(|:])" />
</className>
<function
mainExpr="(?&lt;=def\x20).+?(?=:)"
mainExpr="(?&lt;=\sdef\x20).+?(?=:)"
>
<functionName>
<funcNameExpr expr=".*" />
@ -689,7 +689,7 @@
</function>
</classRange>
<function
mainExpr="(?&lt;=def\x20).+?(?=:)"
mainExpr="(?&lt;=\sdef\x20).+?(?=:)"
>
<functionName>
<nameExpr expr=".*" />