Skip to content

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

Merged
nineforge0 merged 1 commit into
nineforge0:mainfrom
tarnobrzeg123-collab:fix/dotted-candidate-names
Nov 25, 2026
Merged

nineforge0 merged 1 commit into
nineforge0:mainfrom
tarnobrzeg123-collab:fix/dotted-candidate-names

Conversation

@tarnobrzeg123-collab

Copy link
Copy Markdown
Contributor

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.

@nineforge0
nineforge0 merged commit f40381c into nineforge0:main Nov 25, 2026
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.

Filename recovery: keep dotted candidate strings (resolve content.xml)

2 participants