Commit 2be0457
fix(dts): follow alias chains of any length and keep U+2028 / U+2029 line breaks whole
An import-equals alias chain is followed until it ends, stopping only on a
cycle, instead of giving up after 16 aliases (`A17.T` through 18 aliases is
`T`, like ngtsc). Looking back for a `//` before a union now steps over a
U+2028 / U+2029 line break by its full UTF-8 length, where it used to slice
inside the character and panic.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent f744678 commit 2be0457
2 files changed
Lines changed: 55 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
255 | | - | |
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| |||
703 | 709 | | |
704 | 710 | | |
705 | 711 | | |
706 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
707 | 717 | | |
708 | 718 | | |
709 | 719 | | |
| |||
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
86 | 98 | | |
87 | 99 | | |
88 | 100 | | |
| |||
302 | 314 | | |
303 | 315 | | |
304 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
305 | 342 | | |
306 | 343 | | |
307 | 344 | | |
| |||
739 | 776 | | |
740 | 777 | | |
741 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
742 | 783 | | |
743 | 784 | | |
744 | 785 | | |
| |||
0 commit comments