1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-23 18:47:57 +00:00
emacs/test/indent/perl.perl
Stefan Monnier 5ba339c7f4 * lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): New var.
(perl-syntax-propertize-function): Use it.  Extend handling of
here-docs to the unquoted case.
2014-04-25 15:22:26 -04:00

31 lines
456 B
Perl
Executable File

#!/usr/bin/perl
# -*- eval: (bug-reference-mode 1) -*-
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
print <<"EOF1" . <<\EOF2 . s/he"llo/th'ere/;
foo
EOF2
bar
EOF1
bar
EOF2
print $'; # This should not start a string!
print "hello" for /./;
$fileType_filesButNot # bug#12373?
= join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );