Read a dynamic import's template specifier and a division after a postfix ++ in the gate's import scan, so neither hides an import from ReachedInternals
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Review of 402 against its issue (Spec) and AGENTS.md with spec §7 (Standards). - imports.ts: `import(`x`)` and `require(`x`)` with a template that has no `${}` name a module as fixed as a string, but the scan read only quotes, so a backtick was a one-character way past ReachedInternals. The two call forms now take a backtick too; a template with a substitution keeps its `${` in the masked text and still matches nothing (stage 3's to resolve). - imports.ts: after a postfix `++` or `--` a `/` divides; the lexer read it as a regular expression to the end of the line, hiding any import after it there (`POSTFIX`). - Tests (red by assertion first): imports.test.ts rows for template specifiers in import() and require(), none for a template with a substitution, and imports after `n++ / 2` and `m-- / 2`; shape.test.ts row for a dynamic import of another module's internal file by template. - Test text: the reasoned-escape shape row now says escapeDecisions counts it (no longer the ratchet stage); the `text` helper's doc no longer promises specifiers. - Left as recorded by the builder (402 Comments #1-#5): the one-line edit in packages/git/test/gateway.test.ts outside the territory, `PushFacts.escapeCounts` beyond the Interface, the two escape paths for 403/417, and the "waits" wording. - ASSUMPTION: a code line that opens with `*` still reads as a doc comment's inside, so an import after a multiplication continuation on that line is missed; an accepted cost of reading added lines without their context. - bun run fix && bun run verify green: gate 185 tests; platform entry 1,517,431 of 1,665,000.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+47 added−9 removed
- tests:+34 added−2 removed
- other:+13 added−7 removed