Verified Commit 766caee1 authored by Rahix's avatar Rahix
Browse files

fix(api): Make regex work with more type decls

Signed-off-by: Rahix's avatarRahix <>
parent 8a1b5c7f
......@@ -16,7 +16,7 @@ MATCH_DECLARATION = re.compile(
MATCH_TYPENAME = re.compile(
r"^(?P<type>(?:const )?(?:struct )?\w+(?:\s+|\*+))(?P<name>\w+)$",
r"^(?P<type>(?:const )?(?:struct )?\w+[*\s]+)(?P<name>\w+)$",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment