# HG changeset patch # User Gregory Szorc # Date 2017-06-15 17:38:19 # Node ID 485b8e87e24461edfbf481e4f58097fe5a2f98c9 # Parent e5a6a540ae630cd7d96953fc362642115493b25e check-config: use named groups in regexp In preparation for making this regexp a bit more complicated. diff --git a/contrib/check-config.py b/contrib/check-config.py --- a/contrib/check-config.py +++ b/contrib/check-config.py @@ -16,12 +16,12 @@ documented = {} configre = re.compile(r''' # Function call - ui\.config(|int|bool|list)\( + ui\.config(?P|int|bool|list)\( # First argument. - ['"](\S+)['"],\s* + ['"](?P
\S+)['"],\s* # Second argument - ['"](\S+)['"](,\s+ - (?:default=)?(\S+?))? + ['"](?P