Commit d8c8e4f
authored
Loosen author tag parsing (microsoft#41820)
* Loosen author tag parsing
Also make the code more efficient and easier to read.
1. Arbitrary text, except for newline and @, is allowed for the author name.
2. Arbirtrary text, except for newline, is allowed for the email
address.
3. Newline is treated as a match for an open <
I tried to allow newlines in the author and email, but it was ambiguous
with the end of the tag.
I also got rid of the two lookaheads and unified the trailing comment
handling.
Fixes microsoft#41804
* remove hardmode test since it did not reveal anything new1 parent 69143ec commit d8c8e4f
File tree
3 files changed
+305
-53
lines changed- src
- compiler
- testRunner/unittests
- tests/baselines/reference/JSDocParsing
3 files changed
+305
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7740 | 7740 | | |
7741 | 7741 | | |
7742 | 7742 | | |
7743 | | - | |
7744 | | - | |
7745 | | - | |
7746 | | - | |
7747 | | - | |
7748 | | - | |
7749 | | - | |
7750 | | - | |
7751 | | - | |
7752 | | - | |
7753 | | - | |
7754 | | - | |
7755 | | - | |
7756 | | - | |
7757 | | - | |
| 7743 | + | |
| 7744 | + | |
7758 | 7745 | | |
7759 | 7746 | | |
7760 | | - | |
| 7747 | + | |
7761 | 7748 | | |
7762 | | - | |
7763 | | - | |
| 7749 | + | |
7764 | 7750 | | |
7765 | | - | |
7766 | | - | |
7767 | | - | |
7768 | | - | |
7769 | | - | |
7770 | | - | |
7771 | | - | |
7772 | | - | |
7773 | | - | |
7774 | | - | |
7775 | | - | |
7776 | | - | |
7777 | | - | |
7778 | | - | |
7779 | | - | |
7780 | | - | |
7781 | | - | |
7782 | | - | |
7783 | | - | |
7784 | | - | |
7785 | | - | |
7786 | | - | |
7787 | | - | |
7788 | | - | |
7789 | | - | |
7790 | | - | |
7791 | | - | |
| 7751 | + | |
| 7752 | + | |
| 7753 | + | |
7792 | 7754 | | |
7793 | | - | |
| 7755 | + | |
| 7756 | + | |
| 7757 | + | |
| 7758 | + | |
| 7759 | + | |
| 7760 | + | |
| 7761 | + | |
| 7762 | + | |
| 7763 | + | |
7794 | 7764 | | |
7795 | 7765 | | |
7796 | 7766 | | |
7797 | | - | |
7798 | | - | |
7799 | | - | |
| 7767 | + | |
7800 | 7768 | | |
7801 | 7769 | | |
7802 | 7770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
322 | 337 | | |
323 | 338 | | |
324 | 339 | | |
| |||
0 commit comments