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:
parent
e58a815339
commit
f784272f73
2 changed files with 33 additions and 11 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue