aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2015-06-15 17:10:06 -0400
committerStefan Monnier2015-06-15 17:10:06 -0400
commitf784272f7381dfd1fc1e6ba2c3c79cd1b7a9c5cd (patch)
tree5a0ff1dcff3763633edc0ff586dab519554bad5b /test
parente58a815339fe77f184da8e71e3b932a46b2c0433 (diff)
downloademacs-f784272f7381dfd1fc1e6ba2c3c79cd1b7a9c5cd.tar.gz
emacs-f784272f7381dfd1fc1e6ba2c3c79cd1b7a9c5cd.zip
* lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/
(perl--syntax-exp-intro-keywords): New var. (perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it. (bug#20800).
Diffstat (limited to 'test')
-rwxr-xr-xtest/indent/perl.perl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/indent/perl.perl b/test/indent/perl.perl
index ea487543219..f86a09b2733 100755
--- a/test/indent/perl.perl
+++ b/test/indent/perl.perl
@@ -59,3 +59,11 @@ print "hello" for /./;
59 59
60$fileType_filesButNot # bug#12373? 60$fileType_filesButNot # bug#12373?
61 = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} ); 61 = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );
62
63# There can be a comment between an if/when/while and a /<re>/ matcher!
64return 'W' if #/^Not Available on Mobile/m; #W=Web only
65 /This video is not available on mobile devices./m; #bug#20800
66
67# A "y|abc|def|" shouldn't interfere when inside a string!
68$toto = " x \" string\"";
69$toto = " y \" string\""; # This is not the `y' operator!