diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-08-08 19:47:44 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-08-08 19:47:44 +0000 |
commit | 8e7ae056e33b3389a21755f55fa95e623bcad80f (patch) | |
tree | d5a1fc5b264589f78cef03a3ea2326335e5e2a84 /toke.c | |
parent | 8dd4f5d2359f61079da3f00ffb623878fc66461a (diff) | |
download | perl-8e7ae056e33b3389a21755f55fa95e623bcad80f.tar.gz |
Fix bug #16080 : an attribute list should end at '}'
p4raw-id: //depot/perl@17704
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3049,7 +3049,7 @@ Perl_yylex(pTHX) break; /* require real whitespace or :'s */ } tmp = (PL_expect == XOPERATOR ? '=' : '{'); /*'}(' for vi */ - if (*s != ';' && *s != tmp && (tmp != '=' || *s != ')')) { + if (*s != ';' && *s != '}' && *s != tmp && (tmp != '=' || *s != ')')) { char q = ((*s == '\'') ? '"' : '\''); /* If here for an expression, and parsed no attrs, back off. */ if (tmp == '=' && !attrs) { |