Skip to content

Commit

Permalink
toke.c: Expect XBLOCK after ALLSTART/ANYSTART, so as to avoid the blo…
Browse files Browse the repository at this point in the history
…ck-or-hashref ambiguity
  • Loading branch information
leonerd committed Nov 25, 2024
1 parent dc07061 commit 9740356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toke.c
Original file line number Diff line number Diff line change
Expand Up @@ -8001,7 +8001,7 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct
case KEY_all:
Perl_ck_warner_d(aTHX_
packWARN(WARN_EXPERIMENTAL__ANY_ALL), "all is experimental");
LOP(OP_ALLSTART, XREF);
LOP(OP_ALLSTART, XBLOCK);

case KEY_and:
if (!PL_lex_allbrackets && PL_lex_fakeeof >= LEX_FAKEEOF_LOWLOGIC)
Expand All @@ -8011,7 +8011,7 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct
case KEY_any:
Perl_ck_warner_d(aTHX_
packWARN(WARN_EXPERIMENTAL__ANY_ALL), "any is experimental");
LOP(OP_ANYSTART, XREF);
LOP(OP_ANYSTART, XBLOCK);

case KEY_atan2:
LOP(OP_ATAN2,XTERM);
Expand Down

0 comments on commit 9740356

Please sign in to comment.