diff options
author | Brian Fraser <fraserbn@gmail.com> | 2011-08-06 20:59:16 +0100 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-03-22 20:23:56 -0700 |
commit | d0fb66e4dd07da2a32d4da479eecdd70515e9f20 (patch) | |
tree | 6f1ed59a81108b86cc677da07462e7c39cfd2aa3 /toke.c | |
parent | 29fb1d0ef33facc7d4fe58f19322d7d81ade25a8 (diff) | |
download | perl-d0fb66e4dd07da2a32d4da479eecdd70515e9f20.tar.gz |
toke.c: S_checkcomma, "No comma allowed after %s" cleanup
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8623,9 +8623,10 @@ S_checkcomma(pTHX_ const char *s, const char *name, const char *what) while (s < PL_bufend && isSPACE(*s)) s++; if (isIDFIRST_lazy_if(s,UTF)) { - const char * const w = s++; + const char * const w = s; + s += UTF ? UTF8SKIP(s) : 1; while (isALNUM_lazy_if(s,UTF)) - s++; + s += UTF ? UTF8SKIP(s) : 1; while (s < PL_bufend && isSPACE(*s)) s++; if (*s == ',') { |