summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser.mly
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-10 19:28:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-10 19:28:31 +0000
commit3c2420fe71cc4c1d5c0c3edcc174fae7063da2d6 (patch)
treead897b1131f082559e93546a8f744b3e4aa1e9eb /perl_checker.src/parser.mly
parentb8a27a342f6ce60fdeb350ffe9123cfc79627615 (diff)
downloadperl-MDK-Common-3c2420fe71cc4c1d5c0c3edcc174fae7063da2d6.tar
perl-MDK-Common-3c2420fe71cc4c1d5c0c3edcc174fae7063da2d6.tar.gz
perl-MDK-Common-3c2420fe71cc4c1d5c0c3edcc174fae7063da2d6.tar.bz2
perl-MDK-Common-3c2420fe71cc4c1d5c0c3edcc174fae7063da2d6.tar.xz
perl-MDK-Common-3c2420fe71cc4c1d5c0c3edcc174fae7063da2d6.zip
handle "keys %pkg::" (twas broken because keys() is now a ONE_SCALAR_PARA)
Diffstat (limited to 'perl_checker.src/parser.mly')
-rw-r--r--perl_checker.src/parser.mly1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly
index 8340feb..cba55c1 100644
--- a/perl_checker.src/parser.mly
+++ b/perl_checker.src/parser.mly
@@ -297,6 +297,7 @@ term:
| ONE_SCALAR_PARA word_paren parenthesized {call_one_scalar_para $1 [call(Deref(I_func, fst $2), sndfst $3)], sp_pos_range $1 $3}
| ONE_SCALAR_PARA {call_one_scalar_para $1 [], snd $1}
| ONE_SCALAR_PARA word argexpr {check_parenthesized_first_argexpr_with_Ident (fst $2) $3; call_one_scalar_para $1 [call(Deref(I_func, fst $2), sndfst $3)], sp_pos_range $1 $3} /* ref foo $a, $b */
+| ONE_SCALAR_PARA hash PKG_SCOPE {sp_0($3); call_one_scalar_para $1 [ Call(Too_complex, [fst $2]) ], sp_pos_range $1 $3} /* keys %main:: */
| func parenthesized {sp_0($2); (P_tok, call_func true (fst $1, sndfst $2)), sp_pos_range $1 $2} /* &foo(@args) */
| word argexpr {check_parenthesized_first_argexpr_with_Ident (fst $1) $2; (P_call_no_paren, call(Deref(I_func, fst $1), sndfst $2)), sp_pos_range $1 $2} /* foo $a, $b */