Commit e75195e
committed
S_parse_ident: Restructure croaks
This removes the test for the identifier being too long at the beginning
of the loop.
Almost all the branches already have their own checks for this, and by
restructuring those slightly, this one becomes extraneous, except for
the one branch that didn't have a check. And it turns out this was
wrong for that branch, which is the one that turns an apostrophe package
separator into ::. The removed code assumed that the output doesn't
expand, whereas each single apostrophe is in fact replaced by two
characters. This commit corrects that.
And it consolidates the handling to the target of a goto at the end of
the function. Right now, there is no real advantage in that, but a
future commit will make the handling more complicated, so a single point
for it will be useful.1 parent ec82a31 commit e75195e
1 file changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10579 | 10579 | | |
10580 | 10580 | | |
10581 | 10581 | | |
10582 | | - | |
10583 | | - | |
10584 | 10582 | | |
10585 | 10583 | | |
10586 | 10584 | | |
| |||
10600 | 10598 | | |
10601 | 10599 | | |
10602 | 10600 | | |
10603 | | - | |
10604 | | - | |
| 10601 | + | |
| 10602 | + | |
| 10603 | + | |
10605 | 10604 | | |
10606 | 10605 | | |
10607 | 10606 | | |
| |||
10614 | 10613 | | |
10615 | 10614 | | |
10616 | 10615 | | |
10617 | | - | |
| 10616 | + | |
| 10617 | + | |
| 10618 | + | |
| 10619 | + | |
| 10620 | + | |
10618 | 10621 | | |
10619 | 10622 | | |
10620 | 10623 | | |
10621 | 10624 | | |
10622 | 10625 | | |
10623 | 10626 | | |
| 10627 | + | |
| 10628 | + | |
| 10629 | + | |
| 10630 | + | |
10624 | 10631 | | |
10625 | 10632 | | |
10626 | 10633 | | |
| |||
10632 | 10639 | | |
10633 | 10640 | | |
10634 | 10641 | | |
| 10642 | + | |
| 10643 | + | |
| 10644 | + | |
| 10645 | + | |
10635 | 10646 | | |
10636 | 10647 | | |
10637 | 10648 | | |
| |||
10646 | 10657 | | |
10647 | 10658 | | |
10648 | 10659 | | |
| 10660 | + | |
| 10661 | + | |
| 10662 | + | |
10649 | 10663 | | |
10650 | 10664 | | |
10651 | 10665 | | |
| |||
0 commit comments