Commit b729acf
committed
fix(dispatch-gates): mask
`extractWatchHints` masked its source with `maskedModuleBody`, which understands
every comment syntax JavaScript has. `PROGRAM_TEXT_TARGET` admits a third file
kind, `.sh`, whose prose is none of them: every path a `#` comment mentioned came
back as a watch hint, because the JS-shaped literal regex reads a backticked path
as a template literal and a double-quoted one as a string.
The mask is kind-scoped and composes ONTO the JS mask rather than replacing it,
so the shell hint set is a subset of today's by construction. Quote state is
line-scoped: a cross-line scanner desyncs on command substitution and on a `<<<`
here-string, and one unbalanced quote then disables the mask for the rest of the
file — the fabricating direction. The residue is a bounded over-mask.
Measured over the 27 tracked `.sh` files: 37 hints as spelled, 8 after the mask.
Tree-wide over 6,361 scanned files: 11 changed, 11 shrank, 0 grew. The live
derivation is byte-identical, because no family-to-`.sh` population edge exists
yet.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com># comments on shell-kind sources, so a shell target's inherited population is not prose1 parent 4bbf141 commit b729acf
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
520 | 523 | | |
521 | 524 | | |
522 | 525 | | |
| |||
0 commit comments