summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-07-11 22:39:54 -0600
committerKarl Williamson <khw@cpan.org>2015-07-13 12:17:41 -0600
commitfefb073f144151139233ca435fb1fc9edf684fe4 (patch)
tree14f2830d155a10f7bea12c2ef96acc319c52c043
parent97bf8a2377185e29b65c2d10276fb50d0ad63d41 (diff)
downloadperl-fefb073f144151139233ca435fb1fc9edf684fe4.tar.gz
toke.c: Comments, white-space only
Add some clarifying comments, and properly indent some lines to prevailing level.
-rw-r--r--toke.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/toke.c b/toke.c
index 29ebbbfdcc..48b853dc2c 100644
--- a/toke.c
+++ b/toke.c
@@ -8631,7 +8631,7 @@ S_scan_ident(pTHX_ char *s, char *dest, STRLEN destlen, I32 ck_uni)
*d++ = *s++;
}
}
- else {
+ else { /* See if it is a "normal" identifier */
parse_ident(&s, &d, e, 1, is_utf8);
}
*d = '\0';
@@ -8643,6 +8643,9 @@ S_scan_ident(pTHX_ char *s, char *dest, STRLEN destlen, I32 ck_uni)
PL_lex_state = LEX_INTERPENDMAYBE;
return s;
}
+
+ /* Here, it is not a run-of-the-mill identifier name */
+
if (*s == '$' && s[1] &&
(isIDFIRST_lazy_if(s+1,is_utf8)
|| isDIGIT_A((U8)s[1])
@@ -8745,8 +8748,8 @@ S_scan_ident(pTHX_ char *s, char *dest, STRLEN destlen, I32 ck_uni)
/* if it starts as a valid identifier, assume that it is one.
(the later check for } being at the expected point will trap
cases where this doesn't pan out.) */
- d += is_utf8 ? UTF8SKIP(d) : 1;
- parse_ident(&s, &d, e, 1, is_utf8);
+ d += is_utf8 ? UTF8SKIP(d) : 1;
+ parse_ident(&s, &d, e, 1, is_utf8);
*d = '\0';
tmp_copline = CopLINE(PL_curcop);
if (s < PL_bufend && isSPACE(*s)) {