Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: docs: parse_data_structs.py: accept more reftypes

Current regex is limited to only some c-domain reftypes.
There are several others.

Change the code to pick the name specified there.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <5c146923d1e3183893f290216fb1378954e2e540.1759329363.git.mchehab+huawei@kernel.org>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
d2a72e1f 7f809e6a

+1 -1
+1 -1
tools/docs/lib/parse_data_structs.py
··· 214 214 215 215 # Parse reference type when the type is specified 216 216 217 - match = re.match(r"^\:c\:(data|func|macro|type)\:\`(.+)\`", new) 217 + match = re.match(r"^\:c\:(\w+)\:\`(.+)\`", new) 218 218 if match: 219 219 reftype = f":c:{match.group(1)}" 220 220 new = match.group(2)