Commit c25f8b2
committed
docs: record
Attempted to generalize the #891 `from` guard to `as`/`keyof`/`is`/`infer`/`satisfies`
(all 'keyword only before a type/value'). It failed and was reverted: unlike `from`
(one scoping mechanism), these are scoped by four at once — the flat keyword group, a
per-keyword `keyword.operator.expression.as` rule, the type-inner injection, and the
structural type rules. De-keywording from the flat group alone (a) didn't fix
`const as = 1` and (b) regressed `keyof`/`is`/`infer` in type position to
entity.name.type (coverage 99.3%->99.2%). A correct fix must reconcile all four.
No functional change: gen-tm reverted to the `from`-only guard (tmLanguage byte-identical),
plus a clarifying comment; ledger documents the attempt + finding honestly. Coverage 99.3%,
test-issues 313/0 unchanged.as contextual-keyword fix as deferred (entangled)1 parent a5fdab6 commit c25f8b2
2 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2260 | 2260 | | |
2261 | 2261 | | |
2262 | 2262 | | |
2263 | | - | |
2264 | | - | |
2265 | | - | |
2266 | | - | |
2267 | | - | |
2268 | | - | |
2269 | | - | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
2270 | 2272 | | |
2271 | 2273 | | |
2272 | 2274 | | |
| |||
0 commit comments