diff --git a/contrib/check-config.py b/contrib/check-config.py --- a/contrib/check-config.py +++ b/contrib/check-config.py @@ -24,6 +24,16 @@ configre = re.compile(r''' (?:default=)?(?P\S+?))? \)''', re.VERBOSE | re.MULTILINE) +configwithre = re.compile(''' + ui\.config(?Pwith)\( + # First argument is callback function. This doesn't parse robustly + # if it is e.g. a function call. + [^,]+,\s* + ['"](?P
\S+)['"],\s* + ['"](?P