summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-08-06 20:59:16 +0100
committerFather Chrysostomos <sprout@cpan.org>2012-03-22 20:23:56 -0700
commitd0fb66e4dd07da2a32d4da479eecdd70515e9f20 (patch)
tree6f1ed59a81108b86cc677da07462e7c39cfd2aa3 /toke.c
parent29fb1d0ef33facc7d4fe58f19322d7d81ade25a8 (diff)
downloadperl-d0fb66e4dd07da2a32d4da479eecdd70515e9f20.tar.gz
toke.c: S_checkcomma, "No comma allowed after %s" cleanup
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 1696e24203..0e6bc4de73 100644
--- a/toke.c
+++ b/toke.c
@@ -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 == ',') {