summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-05-23 14:38:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-05-23 14:38:18 +0000
commit84aca39a394a9e5df15e342ebc4989d616c7ca6a (patch)
tree22a583162b1ac90ab6160e1fca93198da4280c8d /perl_checker.src
parentef6177bbd192348e5b4c26eb6e4fb975aced4f9f (diff)
downloadperl_checker-84aca39a394a9e5df15e342ebc4989d616c7ca6a.tar
perl_checker-84aca39a394a9e5df15e342ebc4989d616c7ca6a.tar.gz
perl_checker-84aca39a394a9e5df15e342ebc4989d616c7ca6a.tar.bz2
perl_checker-84aca39a394a9e5df15e342ebc4989d616c7ca6a.tar.xz
perl_checker-84aca39a394a9e5df15e342ebc4989d616c7ca6a.zip
warn spurious space in ( 1, 2) which should be (1, 2)
Diffstat (limited to 'perl_checker.src')
-rw-r--r--perl_checker.src/parser.mly2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/parser.mly b/perl_checker.src/parser.mly
index 7d45009..2ed8a0b 100644
--- a/perl_checker.src/parser.mly
+++ b/perl_checker.src/parser.mly
@@ -393,7 +393,7 @@ arrayref:
| arrayref_start BRACKET expr BRACKET_END ARRAYREF_END {sp_p($2); sp_p($4); sp_0($5); new_esp (M_ref M_hash) ($1.any @ [Ref(I_hash, $3.any.expr)]) $1 $5}
parenthesized:
| parenthesized_start PAREN_END {sp_0_or_cr($2); new_pesp (if $1.any = [] then M_list else $1.mcontext) (if $1.any = [] then P_tok else P_paren P_comma) $1.any $1 $2}
-| parenthesized_start expr PAREN_END {sp_0_or_cr($3); new_pesp (if $1.any = [] then $2.mcontext else M_list) (P_paren (if $1.any = [] then $2.any.priority else P_comma)) ($1.any @ [(if $1.any = [] then prio_lo P_loose else prio_lo_after P_comma) $2]) $1 $3}
+| parenthesized_start expr PAREN_END {sp_0_or_cr($3); (if $1.any = [] then sp_0_or_cr else sp_p)($2); new_pesp (if $1.any = [] then $2.mcontext else M_list) (P_paren (if $1.any = [] then $2.any.priority else P_comma)) ($1.any @ [(if $1.any = [] then prio_lo P_loose else prio_lo_after P_comma) $2]) $1 $3}
| parenthesized_start BRACKET expr BRACKET_END PAREN_END {sp_p($4); sp_0_or_cr($5); new_pesp (if $1.any = [] then M_ref M_hash else M_list) (P_paren (if $1.any = [] then P_expr else P_comma)) ($1.any @ [Ref(I_hash, $3.any.expr)]) $1 $5}
arrayref_start: