]> code.delx.au - gnu-emacs/blobdiff - test/indent/perl.perl
Merge from emacs-24; up to 117669
[gnu-emacs] / test / indent / perl.perl
index 69c1f90c807a07de185664b77250e3b84bba179c..00ef312f735fefbf0b71a17fec4499a35b0cec8f 100755 (executable)
@@ -1,12 +1,40 @@
 #!/usr/bin/perl
 # -*- eval: (bug-reference-mode 1) -*-
 
-print <<"EOF1" . s/he"llo/th'ere/;
+sub add_funds($) {
+    return 0;
+}
+
+use v5.14;
+
+my $str= <<END;
+Hello
+END
+
+my $a = $';
+
+my $b=3;
+
+print $str;
+if ($c && /====/){xyz;}
+
+print "a" . <<EOF . s/he"llo/th'ere/;
+It's a surprise!
+EOF
+
+print <<\EOF1 . s/he"llo/th'ere/;
 foo
 EOF2
 bar
 EOF1
 
+$config = {
+    b  =>
+        [
+         "123",
+        ],
+    c => "123",
+};
 
 print <<"EOF1" . <<\EOF2 . s/he"llo/th'ere/;
 foo
@@ -16,5 +44,9 @@ EOF1
 bar
 EOF2
 
+print $'; # This should not start a string!
+
+print "hello" for /./;
+
 $fileType_filesButNot           # bug#12373?
     = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );