diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-05-26 14:14:54 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-05-26 14:14:54 +0000 |
commit | 006dcb333615841ec541648b81df1780d766b364 (patch) | |
tree | 797d4d58f1eaab7057f32959b9b191d12402e1e2 /perl_checker.src/parser.mly | |
parent | 7c7d7bec4eca414b9eda728f4e227af7f6cbba7c (diff) | |
download | perl_checker-006dcb333615841ec541648b81df1780d766b364.tar perl_checker-006dcb333615841ec541648b81df1780d766b364.tar.gz perl_checker-006dcb333615841ec541648b81df1780d766b364.tar.bz2 perl_checker-006dcb333615841ec541648b81df1780d766b364.tar.xz perl_checker-006dcb333615841ec541648b81df1780d766b364.zip |
correctly handle { Protocol => { val => 'Standard' } }
(was broken due to the "arch => 1" hack)
Diffstat (limited to 'perl_checker.src/parser.mly')
-rw-r--r-- | perl_checker.src/parser.mly | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly index 3f042ae..ceb3c41 100644 --- a/perl_checker.src/parser.mly +++ b/perl_checker.src/parser.mly @@ -196,6 +196,7 @@ expr: /* Ordinary expressions; logical combinations */ argexpr: /* Expressions are a list of terms joined by commas */ | argexpr comma { new_pesp M_list P_comma $1.any.expr $1 $2} | bareword RIGHT_ARROW term {if not_simple ($3.any.expr) then sp_p($3); new_pesp M_list P_comma (followed_by_comma [$1.any] false @ [$3.any.expr]) $1 $3} +| bareword RIGHT_ARROW BRACKET expr BRACKET_END {sp_p($3); sp_p($5); new_pesp M_list P_comma (followed_by_comma [$1.any] false @ [ Ref(I_hash, $4.any.expr) ]) $1 $5} | argexpr comma term {if not_simple ($3.any.expr) then sp_p($3); new_pesp M_list P_comma (followed_by_comma $1.any.expr $2.any @ [$3.any.expr]) $1 $3} | argexpr comma BRACKET expr BRACKET_END {sp_p($3); sp_p($5); new_pesp M_list P_comma (followed_by_comma $1.any.expr $2.any @ [ Ref(I_hash, $4.any.expr) ]) $1 $5} | term %prec PREC_LOW { new_1pesp $1.any.priority [$1.any.expr] $1 } |