Skip to content

Commit

Permalink
Adjust to recent phnt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Jan 9, 2025
1 parent 5b39779 commit 91c2431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get_chunk_identifiers(chunk: str) -> List[str]:

# Example:
# typedef PVOID SAM_HANDLE, *PSAM_HANDLE;
if match := re.match(r'^typedef(?:\s+(?:const|signed|unsigned|\[public\]|_W64|_Null_terminated_))*\s+\w+(?: const| UNALIGNED)*(.*?)(?:\[.*?\])?;$', chunk):
if match := re.match(r'^typedef(?:\s+(?:const|CONST|signed|unsigned|\[public\]|_W64|_Null_terminated_))*\s+\w+(?: const| CONST| UNALIGNED)*(.*?)(?:\[.*?\])?;$', chunk):
idents = match.group(1).split(',')
idents = [x.lstrip('* ').rstrip() for x in idents]
assert len(idents) > 0, chunk
Expand Down

0 comments on commit 91c2431

Please sign in to comment.