summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorBranislav ZahradnĂ­k <barney@cpan.org>2020-12-11 17:19:04 +0100
committerKarl Williamson <khw@cpan.org>2020-12-27 09:46:09 -0700
commitdb83e45c10af8c06705fef1c3bd933ffa6a5e3f0 (patch)
tree0672cd24836cf52f4fb55b2532c9d4d0edbb77b4 /toke.c
parentda4bce7d622f45b752d496660faa400b8d582c7f (diff)
downloadperl-db83e45c10af8c06705fef1c3bd933ffa6a5e3f0.tar.gz
Distinguish C- and perly- literals - PERLY_EQUAL_SIGN
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index c14777785d..bec8f4d822 100644
--- a/toke.c
+++ b/toke.c
@@ -391,6 +391,7 @@ static struct debug_tokens {
DEBUG_TOKEN (IVAL, PERLY_BRACKET_CLOSE),
DEBUG_TOKEN (IVAL, PERLY_BRACKET_OPEN),
DEBUG_TOKEN (IVAL, PERLY_DOT),
+ DEBUG_TOKEN (IVAL, PERLY_EQUAL_SIGN),
DEBUG_TOKEN (IVAL, PERLY_SEMICOLON),
{ PLUGEXPR, TOKENTYPE_OPVAL, "PLUGEXPR" },
{ PLUGSTMT, TOKENTYPE_OPVAL, "PLUGSTMT" },
@@ -6186,7 +6187,7 @@ yyl_leftcurly(pTHX_ char *s, const U8 formbrack)
pl_yylval.ival = CopLINE(PL_curcop);
PL_copline = NOLINE; /* invalidate current command line number */
- TOKEN(formbrack ? '=' : PERLY_BRACE_OPEN);
+ TOKEN(formbrack ? PERLY_EQUAL_SIGN : PERLY_BRACE_OPEN);
}
static int