catalog/harvest: emit dotted identifier runs as candidate names #13

Manually merged
github merged 1 commit from gh-pr/13/head into gh-pr/13/base 2026-11-26 20:55:46 +00:00
Owner

@⁠tarnobrzeg123-collab on GitHub · 2026-11-25 03:53 UTC · original
tarnobrzeg123-collab:fix/dotted-candidate-names → main · +45 −5 · 1 files · 1 commits · merged 2026-11-25 04:29 UTC

Closes #11

Summary

  • Updates scan_words in src/main.rs so catalog and harvest also emit dotted identifier runs ([A-Za-z0-9_]+(\.[A-Za-z0-9_]+)+, 3–64 bytes, as-is and lowercased) in addition to the existing .-split identifier tokens.
  • Strips leading/trailing . and splits across consecutive dots (..), keeping existing behavior for non-dotted names unchanged.
  • Adds a synthetic-byte unit test (catalog_resolves_dotted_candidate_names) verifying resolution of content.xml, split tokens (content), multi-dot names (setup2.meta.xml), and rejection of foo..bar.

Testing

  • cargo build --release — succeeded with 0 warnings.
  • cargo test --release — all 65 tests pass (58 library + 7 binary, including the new tests::catalog_resolves_dotted_candidate_names), synthetic data only, no game files used.
**@⁠tarnobrzeg123-collab** on GitHub · 2026-11-25 03:53 UTC · [original](https://github.com/nineforge0/forge9/pull/13) `tarnobrzeg123-collab:fix/dotted-candidate-names` → `main` · +45 −5 · 1 files · 1 commits · merged 2026-11-25 04:29 UTC Closes #11 ### Summary - Updates `scan_words` in `src/main.rs` so `catalog` and `harvest` also emit dotted identifier runs (`[A-Za-z0-9_]+(\.[A-Za-z0-9_]+)+`, 3–64 bytes, as-is and lowercased) in addition to the existing `.`-split identifier tokens. - Strips leading/trailing `.` and splits across consecutive dots (`..`), keeping existing behavior for non-dotted names unchanged. - Adds a synthetic-byte unit test (`catalog_resolves_dotted_candidate_names`) verifying resolution of `content.xml`, split tokens (`content`), multi-dot names (`setup2.meta.xml`), and rejection of `foo..bar`. ### Testing - `cargo build --release` — succeeded with 0 warnings. - `cargo test --release` — all 65 tests pass (58 library + 7 binary, including the new `tests::catalog_resolves_dotted_candidate_names`), synthetic data only, no game files used.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:55:41 +00:00
github manually merged commit 6cefcca361 into gh-pr/13/base 2026-11-26 20:55:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.