X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/0b2014f9cb13efdd6ebc30627d88b9a7f3a42149..cd950da:/test/indent/perl.perl diff --git a/test/indent/perl.perl b/test/indent/perl.perl index 00ef312f73..f86a09b273 100755 --- a/test/indent/perl.perl +++ b/test/indent/perl.perl @@ -5,6 +5,15 @@ sub add_funds($) { return 0; } +my $hash = { + foo => 'bar', + format => 'some', +}; + +sub some_code { + print "will not indent :("; +}; + use v5.14; my $str= <{filesButNot}} ); + +# There can be a comment between an if/when/while and a // matcher! +return 'W' if #/^Not Available on Mobile/m; #W=Web only + /This video is not available on mobile devices./m; #bug#20800 + +# A "y|abc|def|" shouldn't interfere when inside a string! +$toto = " x \" string\""; +$toto = " y \" string\""; # This is not the `y' operator!