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
commitd113cbbcc0080fb0397835818c69709c5fd43178 (patch)
tree2fc435a4113251903919d50a3c6dafd12f56152e /perl_checker.src/parser.mly
parentf64fcf66146494e6a4cb4aeeb573cd5d2859716b (diff)
downloadperl_checker-d113cbbcc0080fb0397835818c69709c5fd43178.tar
perl_checker-d113cbbcc0080fb0397835818c69709c5fd43178.tar.gz
perl_checker-d113cbbcc0080fb0397835818c69709c5fd43178.tar.bz2
perl_checker-d113cbbcc0080fb0397835818c69709c5fd43178.tar.xz
perl_checker-d113cbbcc0080fb0397835818c69709c5fd43178.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 */