summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-05-22 23:10:16 +0100
committerNicholas Clark <nick@ccl4.org>2010-05-23 19:05:10 +0100
commit702646f25c38c963340344fc4125d616ff143857 (patch)
tree71d78cd8eacb0115b0f3bfe9bbaa74254ba368be /perly.y
parentebe8e111d12294e0144e3f276418ccacc4ff3fe2 (diff)
downloadperl-702646f25c38c963340344fc4125d616ff143857.tar.gz
fix MAD handling of package block syntax
There was a broken TOKEN_GETMAD attempting to handle the label preceding a package-block statement, where no label is actually possible. The correct behaviour for no label is a no-op, so just remove the TOKEN_GETMAD.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/perly.y b/perly.y
index dcb6114d31..edbcb19b36 100644
--- a/perly.y
+++ b/perly.y
@@ -246,8 +246,7 @@ line : label cond
{ $$ = newSTATEOP(0, NULL,
newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
NOLINE, (OP*)NULL, $1,
- (OP*)NULL, 0));
- TOKEN_GETMAD($1,((LISTOP*)$$)->op_first,'L'); }
+ (OP*)NULL, 0)); }
| label PLUGSTMT
{ $$ = newSTATEOP(0, PVAL($1), $2); }
;