Previous update didn't have whitespace matcher here: \s*\((?P<sig>[a-zA-Z0-9$]+)\(', Added it in for robustness and to match the other regexes on the lines below.