X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=toke.c;h=8f5795a1b2d98940af17f021421e5bcc805fc3a1;hb=d002ef56a2861d995ba1887bd9f3d10c8c74d149;hp=951c1ca84cfe93b0ccd331a677e5881ac50c1d77;hpb=7bf7986364dc86acb86c5d83e7512b8dbdcb0165;p=p5sagit%2Fp5-mst-13.2.git diff --git a/toke.c b/toke.c index 951c1ca..8f5795a 100644 --- a/toke.c +++ b/toke.c @@ -4287,7 +4287,10 @@ Perl_yylex(pTHX) BOop(OP_BIT_XOR); case '[': PL_lex_brackets++; - /* FALL THROUGH */ + { + const char tmp = *s++; + OPERATOR(tmp); + } case '~': if (s[1] == '~' && (PL_expect == XOPERATOR || PL_expect == XTERMORDORDOR)) @@ -4337,6 +4340,7 @@ Perl_yylex(pTHX) case KEY_or: case KEY_and: case KEY_for: + case KEY_foreach: case KEY_unless: case KEY_if: case KEY_while: