my $rcopy = copy_token_as_type( $rtoken_vars, '->', '->' );
$store_token->($rcopy);
+ # store a blank after the arrow if requested
+ # added for issue git #33
+ if ($want_right_space{'->'} == WS_YES ) {
+ my $rcopy =
+ copy_token_as_type( $rtoken_vars, 'b', ' ' );
+ $store_token->($rcopy);
+ }
+
# then reset the current token to be the remainder,
# and reset the whitespace flag according to the arrow
$token = $rtoken_vars->[_TOKEN_] = $token_save;
--- /dev/null
+# test -wls='->' -wrs='->'
+use Net::Ping;
+my ($ping) = Net::Ping->new();
+$ping->ping($host);
+
--- /dev/null
+# test -wls='->' -wrs='->'
+use Net::Ping;
+my ($ping) = Net::Ping -> new();
+$ping -> ping($host);
+
--- /dev/null
+# test -wls='->' -wrs='->'
+use Net::Ping;
+my ($ping) = Net::Ping->new();
+$ping->ping($host);
+
--- /dev/null
+-wls='->' -wrs='->'
+
../snippets21.t sot.sot
../snippets21.t prune.def
../snippets21.t align33.def
+../snippets21.t gnu7.def
+../snippets21.t gnu7.gnu
../snippets3.t ce_wn1.ce_wn
../snippets3.t ce_wn1.def
../snippets3.t colin.colin
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets21.t gnu7.def
-../snippets21.t gnu7.gnu
+../snippets21.t git33.def
+../snippets21.t git33.git33
#7 align33.def
#8 gnu7.def
#9 gnu7.gnu
+#10 git33.def
+#11 git33.git33
# To locate test #13 you can search for its name or the string '#13'
# BEGIN SECTION 1: Parameter combinations #
###########################################
$rparams = {
- 'def' => "",
+ 'def' => "",
+ 'git33' => <<'----------',
+-wls='->' -wrs='->'
+
+----------
'gnu' => "-gnu",
'lop' => "-nlop",
'sot' => "-sot -sct",
$rm = $numbstyle ? "t" : "f";
$pa = $showurl ? "t" : "f";
$nh = $seq_number ? "t" : "f";
+----------
+
+ 'git33' => <<'----------',
+# test -wls='->' -wrs='->'
+use Net::Ping;
+my ($ping) = Net::Ping->new();
+$ping->ping($host);
+
----------
'gnu7' => <<'----------',
}
#9...........
},
+
+ 'git33.def' => {
+ source => "git33",
+ params => "def",
+ expect => <<'#10...........',
+# test -wls='->' -wrs='->'
+use Net::Ping;
+my ($ping) = Net::Ping->new();
+$ping->ping($host);
+
+#10...........
+ },
+
+ 'git33.git33' => {
+ source => "git33",
+ params => "git33",
+ expect => <<'#11...........',
+# test -wls='->' -wrs='->'
+use Net::Ping;
+my ($ping) = Net::Ping -> new();
+$ping -> ping($host);
+
+#11...........
+ },
};
my $ntests = 0 + keys %{$rtests};