This allows function calls as default parameter values by loosening the regex to allow closing parentheses within a method parameter list. Can't think of how this would create false positives so we'll give this a try.
It also excludes switch and with flow control constructs from being matched as if they were methods.
This allows function calls as default parameter values by loosening the regex to allow closing parentheses within a method parameter list. Can't think of how this would create false positives so we'll give this a try.
It also excludes
switch
andwith
flow control constructs from being matched as if they were methods.