diff options
author | Branislav ZahradnĂk <barney@cpan.org> | 2020-12-11 17:19:04 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-12-27 09:46:09 -0700 |
commit | db83e45c10af8c06705fef1c3bd933ffa6a5e3f0 (patch) | |
tree | 0672cd24836cf52f4fb55b2532c9d4d0edbb77b4 /toke.c | |
parent | da4bce7d622f45b752d496660faa400b8d582c7f (diff) | |
download | perl-db83e45c10af8c06705fef1c3bd933ffa6a5e3f0.tar.gz |
Distinguish C- and perly- literals - PERLY_EQUAL_SIGN
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |