perl-module-token-parser
Cursor-aware module token parsing for import and reference workflows.
This crate is the bridge between raw text and token spans. It identifies the module token under a cursor so the higher-level import, reference, and rename crates can stay boundary-aware without reimplementing token scanning.
Pipeline
perl-module-token-corescans spans.perl-module-token-parserexposes the cursor-facing parser.perl-module-referenceandperl-module-renameuse the span to find or rewrite module names.
Key API
ModuleTokenSpanparse_module_token
Example
use ;
assert_eq!;