Repository navigation
Description
Part of #3122. Follow-up to #3198.
#3198 gave the unreferenced_by_name census the two registry keys it needs to judge an occurrence by the language's own identifier rules (docs/unreferenced_by_name_contract.md, corollary 7):
identifier_case: "insensitive"— the language resolves names regardless of case.identifier_extra_chars— name characters beyond\w.
cobol is the only language that declares either today. It was the one with corpus evidence in hand (its census feeds the refraction pipeline), and #3198 deliberately did not bulk-edit the rest: declaring a key MOVES that language's census and needs its own evidence and golden-master bless.
The candidates
These are case-insensitive languages whose call sites can therefore read as no reference at all when written in a different case from the declaration:
| language | why | extra name chars |
|---|---|---|
| fortran | case-insensitive since FORTRAN 77 | — |
| pli | case-insensitive | _ is already \w |
| rexx | case-insensitive | — |
| hlasm | symbols are case-insensitive in practice | — |
| abap | case-insensitive (PERFORM probe_branch) |
— |
sql family (sqlite, db2_sql) |
identifiers case-insensitive unless quoted | — |
| powershell | case-insensitive | — |
| ada | case-insensitive | — |
| pascal-family, vb-family | case-insensitive | — |
bms is case-insensitive too but declares invocation_model: "positional", so its census is not computed and the keys would be inert.
What the work is
Per language, in one PR or a small batch:
- Measure first.
tests/tools/census_probe.py/ asplice()pass over the crucible corpus group: how many units changeusage_statuswith the key declared? Zero movement means the corpus never writes a differently-cased call, which is evidence the declaration is harmless but not that it is needed. - Check the keyword-rosetta plant for the language: does it write its
PERFORM/call in the declaration's case? If so, the control corpus cannot see the defect and the crucible is the only evidence. - Declare, bless the golden masters, and add the language to the literal set in
test_exactly_the_declared_languages_carry_a_lexicon.
Haskell is explicitly not a candidate: it carries case_insensitive_imports for module resolution, but its identifiers are case-sensitive. That key is about imports; these two are about identifiers, and they must not be conflated.
Activity
fix(cobol): sentence-anchored paragraph headers (#3197) + census iden…
Golden master: re-bless #3225 on top of #3304
unreferenced_by_name: declare identifier_case for nine case-insensiti…