Skip to content

fix(std): handle nested comments and character literals in API inventory - #1053

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
hiyouwhatsapp:fix/std-inventory-nested-comments-993
Oct 27, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
hiyouwhatsapp:fix/std-inventory-nested-comments-993

Conversation

@hiyouwhatsapp

Copy link
Copy Markdown
Contributor

Fixes #993

The inventory scan was stopping at the first */, so a nested comment could leak fake public functions into the docs

It was also counting braces and semicolons inside character literals, which could make a valid const fail to scan

I kept the source positions while masking comments and quoted delimiters separately, and added regressions for nested comments, escapes and CRLF

The isolated Python cases passed locally, haven't run the full repo suite here

@hiyouwhatsapp
hiyouwhatsapp force-pushed the fix/std-inventory-nested-comments-993 branch from 089413c to 3f7bf1c Compare October 26, 2026 17:26
@LunaStev
LunaStev merged commit 7e484c6 into wavefnd:master Oct 27, 2026
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the std API inventory scanner respect nested comments and character literals

2 participants