We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 072a69f commit 4bb1d7eCopy full SHA for 4bb1d7e
tools/extract-formats.py
@@ -67,7 +67,7 @@ def main(options, args=None, output=sys.stdout, lines=None):
67
typeline = re.compile(
68
'1\. type: (?P<value>[-0-9A-Za-z_|]+) \(`(?P<name>[A-Za-z_]+)`\)')
69
dataline = re.compile(
70
- '\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>[^)`]*)`?\))?')
71
72
if lines is None:
73
lines = fileinput.input(args)
0 commit comments