my $in_continued_quote =
( $Ktoken_vars == $K_first ) && $line_of_tokens->{_starting_in_quote};
+ if ( $max_index_to_go == 0 ) {
+ $starting_in_quote = $in_continued_quote;
+ }
# Define the indentation that this token would have if it started
# a new line. We start by using the default formula.
my $rtok_first = $rLL->[$K_first];
- $starting_in_quote = $line_of_tokens->{_starting_in_quote};
my $in_quote = $line_of_tokens->{_ending_in_quote};
$ending_in_quote = $in_quote;
my $guessed_indentation_level =
--- /dev/null
+# the closing braces should have the same position for these two hashes with -gnu
+ $var1 = {
+ 'foo10' => undef,
+ 'foo72' => '
+',
+ };
+ $var2 = {
+ 'foo72' => '
+',
+ 'foo10' => undef,
+ };
+
--- /dev/null
+ # the closing braces should have the same position for these two hashes with -gnu
+ $var1 = {
+ 'foo10' => undef,
+ 'foo72' => '
+',
+ };
+ $var2 = {
+ 'foo72' => '
+',
+ 'foo10' => undef,
+ };
+
--- /dev/null
+# the closing braces should have the same position for these two hashes with -gnu
+ $var1 = {
+ 'foo10' => undef,
+ 'foo72' => '
+',
+ };
+ $var2 = {
+ 'foo72' => '
+',
+ 'foo10' => undef,
+ };
+
../snippets20.t wc.def
../snippets20.t wc.wc1
../snippets20.t wc.wc2
+../snippets20.t ce2.ce
+../snippets20.t ce2.def
../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
-../snippets20.t ce2.ce
-../snippets20.t ce2.def
+../snippets20.t gnu6.def
+../snippets20.t gnu6.gnu
#6 wc.wc2
#7 ce2.ce
#8 ce2.def
+#9 gnu6.def
+#10 gnu6.gnu
# To locate test #13 you can search for its name or the string '#13'
$rparams = {
'ce' => "-cuddled-blocks",
'def' => "",
+ 'gnu' => "-gnu",
'space6' => <<'----------',
-nwrs="+ - / *"
-nwls="+ - / *"
# Is Perl being run from a slave editor or graphical debugger?
...
}
+----------
+
+ 'gnu6' => <<'----------',
+# the closing braces should have the same position for these two hashes with -gnu
+ $var1 = {
+ 'foo10' => undef,
+ 'foo72' => '
+',
+ };
+ $var2 = {
+ 'foo72' => '
+',
+ 'foo10' => undef,
+ };
+
----------
'space6' => <<'----------',
}
#8...........
},
+
+ 'gnu6.def' => {
+ source => "gnu6",
+ params => "def",
+ expect => <<'#9...........',
+# the closing braces should have the same position for these two hashes with -gnu
+ $var1 = {
+ 'foo10' => undef,
+ 'foo72' => '
+',
+ };
+ $var2 = {
+ 'foo72' => '
+',
+ 'foo10' => undef,
+ };
+
+#9...........
+ },
+
+ 'gnu6.gnu' => {
+ source => "gnu6",
+ params => "gnu",
+ expect => <<'#10...........',
+ # the closing braces should have the same position for these two hashes with -gnu
+ $var1 = {
+ 'foo10' => undef,
+ 'foo72' => '
+',
+ };
+ $var2 = {
+ 'foo72' => '
+',
+ 'foo10' => undef,
+ };
+
+#10...........
+ },
};
my $ntests = 0 + keys %{$rtests};