Ignore commented GDK table rows #2681
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2681
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2681"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@luckyteagirl on GitHub · 2026-11-26 05:56 UTC · original
luckyteagirl:codex/gdk-table-ignore-comments→main· +48 −0 · 2 files · 2 commits · opengen_gdk_table.pypicked up API rows inside//and/* ... */comments. This made disabled rows appear in the generated Rust table.What is in it
Sourcefield from the original input, then remove comments before matching API rows. Preserve quoted fields while stripping so//or/*inside a field does not swallow the active row.Tested
b49be183, the fixture emitted both commented-out rows. With the patch, it emitted only the active row and preserved the full source URL.//swallowed the following active row; it passes on head49973864.python -B -m unittest discover -s scripts -p 'test_*.py': 26 passed, 0 failed, 0 skipped on Windows with Python 3.11.//.git diff --checkpassed.Regression run
Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.