This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: Touch PL_expect less for implicit [.,] in quotes
authorFather Chrysostomos <sprout@cpan.org>
Fri, 22 Aug 2014 12:45:27 +0000 (05:45 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 25 Aug 2014 02:02:57 +0000 (19:02 -0700)
commita92622bcc30131a0d161a1a90d65475ebafd2329
treebfb29d53c7f3f6056d708687a52a57722b84ef7b
parente4916dd1b37bf1a38d4b4711efc268f2ddfca52f
toke.c: Touch PL_expect less for implicit [.,] in quotes

When emitting implicit commas and cats, there is no need to set
PL_expect at the same time, since these code paths have already set
it to the correct value.  Also, the two instances of Aop would check
the current parse position for an ‘=’ to make an assignment operator.
But that could never happen in these two code paths, so the check
was a waste.
toke.c