diff options
author | Branislav ZahradnĂk <barney@cpan.org> | 2020-12-11 17:19:10 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-12-27 09:46:09 -0700 |
commit | a1ad62bfea2492db90c01a1b1dfe6612521d7c3a (patch) | |
tree | 8c98274e484d670a171e3ecb4072c53756cb872d /toke.c | |
parent | 3d9ccdfc9c042f91d022df1227f4b05ddeca831c (diff) | |
download | perl-a1ad62bfea2492db90c01a1b1dfe6612521d7c3a.tar.gz |
Distinguish C- and perly- literals - PERLY_QUESTION_MARK
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -396,6 +396,7 @@ static struct debug_tokens { DEBUG_TOKEN (IVAL, PERLY_DOT), DEBUG_TOKEN (IVAL, PERLY_EQUAL_SIGN), DEBUG_TOKEN (IVAL, PERLY_EXCLAMATION_MARK), + DEBUG_TOKEN (IVAL, PERLY_QUESTION_MARK), DEBUG_TOKEN (IVAL, PERLY_SEMICOLON), DEBUG_TOKEN (IVAL, PERLY_TILDE), { PLUGEXPR, TOKENTYPE_OPVAL, "PLUGEXPR" }, @@ -8991,7 +8992,7 @@ yyl_try(pTHX_ char *s) TOKEN(0); } PL_lex_allbrackets++; - OPERATOR('?'); + OPERATOR(PERLY_QUESTION_MARK); case '.': if (PL_lex_formbrack && PL_lex_brackets == PL_lex_formbrack |