summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-12-08 09:04:37 -0700
committerKarl Williamson <khw@cpan.org>2014-12-11 11:28:29 -0700
commit638c2f561aabf609b4278710e676fe8f8058bd38 (patch)
tree91aff7b604012a8f6b887c58d5d3e3faa71bc8a8 /toke.c
parent5e4ff68ea6a2e558cc4bbaf4e39ca0363240fdb4 (diff)
downloadperl-638c2f561aabf609b4278710e676fe8f8058bd38.tar.gz
toke.c: Use mnemonic rather than numeric
This was clear because the comment gave what the number meant, but if the value ever changed, this would break.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 418b11d7b0..cce9323d57 100644
--- a/toke.c
+++ b/toke.c
@@ -10634,7 +10634,7 @@ Perl_yyerror_pvn(pTHX_ const char *const s, STRLEN len, U32 flags)
}
else if (yychar > 255)
sv_catpvs(where_sv, "next token ???");
- else if (yychar == -2) { /* YYEMPTY */
+ else if (yychar == YYEMPTY) {
if (PL_lex_state == LEX_NORMAL ||
(PL_lex_state == LEX_KNOWNEXT && PL_lex_defer == LEX_NORMAL))
sv_catpvs(where_sv, "at end of line");