# HG changeset patch # User Gregory Szorc # Date 1497548299 25200 # Node ID 485b8e87e24461edfbf481e4f58097fe5a2f98c9 # Parent e5a6a540ae630cd7d96953fc362642115493b25e check-config: use named groups in regexp In preparation for making this regexp a bit more complicated. diff -r e5a6a540ae63 -r 485b8e87e244 contrib/check-config.py --- a/contrib/check-config.py Thu Jun 15 10:36:23 2017 -0700 +++ b/contrib/check-config.py Thu Jun 15 10:38:19 2017 -0700 @@ -16,12 +16,12 @@ 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