diff options
| author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2025-10-01 16:49:31 +0200 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2025-10-17 13:56:59 -0600 |
| commit | d2a72e1f27c16d23938b26a78d7e1644b06bb5aa (patch) | |
| tree | bebc017e8350f7e7a7582bdfb661aa9ccc5b1cbf /tools/docs/lib | |
| parent | 7f809e6a6f07e87621e8a6d9cc553fa763cc08af (diff) | |
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>
Diffstat (limited to 'tools/docs/lib')
| -rwxr-xr-x | tools/docs/lib/parse_data_structs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/docs/lib/parse_data_structs.py b/tools/docs/lib/parse_data_structs.py index 0d537e989ea7..25361996cd20 100755 --- a/tools/docs/lib/parse_data_structs.py +++ b/tools/docs/lib/parse_data_structs.py @@ -214,7 +214,7 @@ class ParseDataStructs: # Parse reference type when the type is specified - match = re.match(r"^\:c\:(data|func|macro|type)\:\`(.+)\`", new) + match = re.match(r"^\:c\:(\w+)\:\`(.+)\`", new) if match: reftype = f":c:{match.group(1)}" new = match.group(2) |