Skip to content

Commit ba9a212

Browse files
committed
Improve DEFINE_GUID handling
1 parent 2dc74d0 commit ba9a212

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generate_docs.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ def get_chunk_identifiers(chunk: str) -> List[str]:
286286
if chunk == 'EXTERN_C IMAGE_DOS_HEADER __ImageBase;':
287287
return ['__ImageBase']
288288

289-
if match := re.match(r'^DEFINE_GUID\((\w+),', chunk):
290-
return [match.group(1)]
289+
if chunk.startswith('DEFINE_GUID'):
290+
if match := re.match(r'^DEFINE_GUID\(\s*(\w+),', chunk):
291+
return [match.group(1)]
292+
assert False, chunk
291293

292294
if match := re.match(r'^EXTERN_C DECLSPEC_SELECTANY CONST GUID (\w+) =', chunk):
293295
return [match.group(1)]

0 commit comments

Comments
 (0)