summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-24 11:22:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-24 11:22:21 +0000
commit3480a8d2d46562b783befbcecf951d5a2b4067d7 (patch)
tree5f87c595612ae7d8e6c1a0582e12448cb275542f /toke.c
parentb3980c394843d18896023d060cf87f3a509acec8 (diff)
downloadperl-3480a8d2d46562b783befbcecf951d5a2b4067d7.tar.gz
The tokenizer should expect an operator after qw().
This fixes [perl #35885] qw and x operators doesn't mix p4raw-id: //depot/perl@24560
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index d496f48c35..874f8ab4dd 100644
--- a/toke.c
+++ b/toke.c
@@ -4956,6 +4956,7 @@ Perl_yylex(pTHX)
s = scan_str(s,FALSE,FALSE);
if (!s)
missingterm((char*)0);
+ PL_expect = XOPERATOR;
force_next(')');
if (SvCUR(PL_lex_stuff)) {
OP *words = Nullop;