From d498d2ac5664c6ce85ec46434b9f31ca7c409e7b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 30 Jul 2019 17:01:30 +0930 Subject: [PATCH] tools/extract-formats.py: allow '.' in length fields. In practice, using '...*type' is the clearest and simplest way to specify the common case of "the rest of the TLV is an array of 'type'", rather than some arbitrary expression with a made-up length field. Signed-off-by: Rusty Russell --- tools/extract-formats.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/extract-formats.py b/tools/extract-formats.py index 64e1406..b505683 100755 --- a/tools/extract-formats.py +++ b/tools/extract-formats.py @@ -30,7 +30,7 @@ tlvline = re.compile( subtypeline = re.compile( '(1\.|\*) subtype: `(?P[A-Za-z0-9_]+)`( \(`?(?P