Skip to content

Commit e139869

Browse files
authored
Merge pull request #2369 from willend/main
Tolerate & and # in mcdoc unit specifications
2 parents a4429b1 + 619a76a commit e139869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/Python/mccodelib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def parse_header(text):
461461
par_doc = None
462462
for l in bites[tag_P].splitlines():
463463
# regex is tolerant for mising ':' in param: [unit] description
464-
m = re.match(r'(\w+)[: \t]*\[([ \w\/\(\)\\\~\-.,\":\%\^\|\{\};\*]*)\][ \t]*(.*)', l)
464+
m = re.match(r'(\w+)[: \t]*\[([ \w\/\(\)\\\~\-.,\":\%\^\|\{\};\*\&\#]*)\][ \t]*(.*)', l)
465465
par_doc = (None, None, None)
466466
if m:
467467
par_doc = (m.group(1), m.group(2), m.group(3).strip())

0 commit comments

Comments
 (0)