mirror of
https://github.com/lightning/bolts.git
synced 2024-11-19 10:00:04 +01:00
tools: allow `` around option names, strip them
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
072a69fe77
commit
4bb1d7e6be
@ -67,7 +67,7 @@ def main(options, args=None, output=sys.stdout, lines=None):
|
|||||||
typeline = re.compile(
|
typeline = re.compile(
|
||||||
'1\. type: (?P<value>[-0-9A-Za-z_|]+) \(`(?P<name>[A-Za-z_]+)`\)')
|
'1\. type: (?P<value>[-0-9A-Za-z_|]+) \(`(?P<name>[A-Za-z_]+)`\)')
|
||||||
dataline = re.compile(
|
dataline = re.compile(
|
||||||
'\s+\* \[`(?P<size>[_a-z0-9*+]+)`:`(?P<name>[_a-z0-9]+)`\]( \((?P<option>[^)]*)\))?')
|
'\s+\* \[`(?P<size>[_a-z0-9*+]+)`:`(?P<name>[_a-z0-9]+)`\]( \(`?(?P<option>[^)`]*)`?\))?')
|
||||||
|
|
||||||
if lines is None:
|
if lines is None:
|
||||||
lines = fileinput.input(args)
|
lines = fileinput.input(args)
|
||||||
|
Loading…
Reference in New Issue
Block a user