summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser.mly
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-04-28 12:23:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-04-28 12:23:18 +0000
commit70dcfcd34535185dcac19d115f16a295711b267a (patch)
treeb6db2a98f49fdc3399c580192dca726f3fba92fe /perl_checker.src/parser.mly
parent7c9690bacb9ae134d735355d4276841abb77a099 (diff)
downloadperl-MDK-Common-70dcfcd34535185dcac19d115f16a295711b267a.tar
perl-MDK-Common-70dcfcd34535185dcac19d115f16a295711b267a.tar.gz
perl-MDK-Common-70dcfcd34535185dcac19d115f16a295711b267a.tar.bz2
perl-MDK-Common-70dcfcd34535185dcac19d115f16a295711b267a.tar.xz
perl-MDK-Common-70dcfcd34535185dcac19d115f16a295711b267a.zip
handle bad PO-: comments at the lexical level instead of doing it in the grammar
to have a better error message
Diffstat (limited to 'perl_checker.src/parser.mly')
-rw-r--r--perl_checker.src/parser.mly1
1 files changed, 0 insertions, 1 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly
index 234982b..460fbf3 100644
--- a/perl_checker.src/parser.mly
+++ b/perl_checker.src/parser.mly
@@ -465,7 +465,6 @@ word_paren:
| BAREWORD_PAREN { new_1esp (Ident(None, $1.any, get_pos $1)) $1 }
| RAW_IDENT_PAREN { new_1esp (to_Ident $1) $1 }
| PO_COMMENT word_paren { po_comment($1); new_esp M_special $2.any $1 $2 }
-| PO_COMMENT { die_rule "N(...) must follow the #-PO: comment, with nothing in between" }
arraylen: ARRAYLEN_IDENT {new_esp M_int (deref_arraylen (to_Ident $1)) $1 $1} | ARRAYLEN scalar {sp_0($2); new_esp M_int (deref_arraylen $2.any ) $1 $1 } | ARRAYLEN bracket_subscript {new_esp M_int (deref_arraylen $2.any) $1 $2}