summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser.mly
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-11 06:38:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-11 06:38:39 +0000
commita80e71db45e49e7cd0923bb7bffdafcef3af7d23 (patch)
tree8e82856f1beae7964464f0fb035a4322a6f0f72d /perl_checker.src/parser.mly
parent2249c9577c00f8da88145876730a43f32a14f042 (diff)
downloadperl_checker-a80e71db45e49e7cd0923bb7bffdafcef3af7d23.tar
perl_checker-a80e71db45e49e7cd0923bb7bffdafcef3af7d23.tar.gz
perl_checker-a80e71db45e49e7cd0923bb7bffdafcef3af7d23.tar.bz2
perl_checker-a80e71db45e49e7cd0923bb7bffdafcef3af7d23.tar.xz
perl_checker-a80e71db45e49e7cd0923bb7bffdafcef3af7d23.zip
enforce spaces around operator "." (string concat)
Diffstat (limited to 'perl_checker.src/parser.mly')
-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 ffc6c40..8c6adf9 100644
--- a/perl_checker.src/parser.mly
+++ b/perl_checker.src/parser.mly
@@ -217,7 +217,7 @@ term:
| term POWER term { symops P_tight M_float (mcontext_float_or_int [$1.mcontext; $3.mcontext]) "**" $1 $2 $3}
| term PLUS term { symops P_add M_float (mcontext_float_or_int [$1.mcontext; $3.mcontext]) $2.any $1 $2 $3}
-| term CONCAT term { symops P_add M_string M_string "." $1 $2 $3}
+| term CONCAT term {sp_p $2; symops P_add M_string M_string "." $1 $2 $3}
| term BIT_SHIFT term { symops (P_paren_wanted P_tight) M_int M_int $2.any $1 $2 $3}
| term XOR term {sp_p $2; symops (P_paren_wanted P_expr) M_bool M_bool "xor" $1 $2 $3}
| term DOTDOT term { symops (P_paren_wanted P_expr) M_unknown_scalar M_string $2.any $1 $2 $3}