Skip to content

Commit 4bb1d7e

Browse files
committed
tools: allow `` around option names, strip them
Signed-off-by: Rusty Russell <[email protected]>
1 parent 072a69f commit 4bb1d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/extract-formats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def main(options, args=None, output=sys.stdout, lines=None):
6767
typeline = re.compile(
6868
'1\. type: (?P<value>[-0-9A-Za-z_|]+) \(`(?P<name>[A-Za-z_]+)`\)')
6969
dataline = re.compile(
70-
'\s+\* \[`(?P<size>[_a-z0-9*+]+)`:`(?P<name>[_a-z0-9]+)`\]( \((?P<option>[^)]*)\))?')
70+
'\s+\* \[`(?P<size>[_a-z0-9*+]+)`:`(?P<name>[_a-z0-9]+)`\]( \(`?(?P<option>[^)`]*)`?\))?')
7171

7272
if lines is None:
7373
lines = fileinput.input(args)

0 commit comments

Comments
 (0)