1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-28 01:00:52 -07:00

* 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).
This commit is contained in:
Stefan Monnier 2015-06-15 17:10:06 -04:00
parent e58a815339
commit f784272f73
2 changed files with 33 additions and 11 deletions

View file

@ -59,3 +59,11 @@ print "hello" for /./;
$fileType_filesButNot # bug#12373?
= join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );
# There can be a comment between an if/when/while and a /<re>/ 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!