Commit ad7c621
committed
Add invisible open delimiters to
Invisible delimiters pretty-print as empty strings, and changing that
can break some proc macros. But error messages saying "expected
identifer, found ``" are bad. So this commit adds support for invisible
open delimiters in `TokenDescription` so they print as "invisible open
delimiter" in error messages, instead of "``".
It's not used meaningfully yet, but will be needed to get rid of interpolated
tokens.TokenDescription.1 parent eb03a6d commit ad7c621
3 files changed
+47
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
| 222 | + | |
| 223 | + | |
219 | 224 | | |
220 | 225 | | |
221 | 226 | | |
| |||
797 | 802 | | |
798 | 803 | | |
799 | 804 | | |
| 805 | + | |
| 806 | + | |
800 | 807 | | |
801 | 808 | | |
802 | 809 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| 951 | + | |
| 952 | + | |
951 | 953 | | |
952 | 954 | | |
953 | 955 | | |
| |||
960 | 962 | | |
961 | 963 | | |
962 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
963 | 968 | | |
964 | 969 | | |
965 | 970 | | |
| |||
992 | 997 | | |
993 | 998 | | |
994 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
995 | 1003 | | |
996 | 1004 | | |
997 | 1005 | | |
| |||
1047 | 1055 | | |
1048 | 1056 | | |
1049 | 1057 | | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1050 | 1061 | | |
1051 | 1062 | | |
1052 | 1063 | | |
| |||
1671 | 1682 | | |
1672 | 1683 | | |
1673 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1674 | 1692 | | |
1675 | 1693 | | |
1676 | 1694 | | |
| |||
1687 | 1705 | | |
1688 | 1706 | | |
1689 | 1707 | | |
| 1708 | + | |
1690 | 1709 | | |
1691 | 1710 | | |
1692 | 1711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
349 | 358 | | |
350 | 359 | | |
351 | 360 | | |
| |||
355 | 364 | | |
356 | 365 | | |
357 | 366 | | |
| 367 | + | |
358 | 368 | | |
359 | 369 | | |
360 | 370 | | |
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
364 | | - | |
| 374 | + | |
365 | 375 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
| 376 | + | |
372 | 377 | | |
373 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
374 | 387 | | |
375 | 388 | | |
376 | 389 | | |
| |||
0 commit comments