# HG changeset patch # User Stefan Monnier # Date 1288751412 14400 # Node ID 9aff83bb4de197bb144745b21df128223d28e063 # Parent ab83881bb97a8d7e6e14543fa8986b3ce7d68afb * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Handle __DATA__ and __END__. diff -r ab83881bb97a -r 9aff83bb4de1 lisp/ChangeLog --- a/lisp/ChangeLog Wed Nov 03 01:06:33 2010 +0000 +++ b/lisp/ChangeLog Tue Nov 02 22:30:12 2010 -0400 @@ -1,3 +1,8 @@ +2010-11-03 Stefan Monnier + + * progmodes/perl-mode.el (perl-syntax-propertize-function): + Handle __DATA__ and __END__. + 2010-11-02 Noah Friedman * emacs-lisp/bytecomp.el (byte-recompile-file): If bytecomp-arg is diff -r ab83881bb97a -r 9aff83bb4de1 lisp/progmodes/perl-mode.el --- a/lisp/progmodes/perl-mode.el Wed Nov 03 01:06:33 2010 +0000 +++ b/lisp/progmodes/perl-mode.el Tue Nov 02 22:30:12 2010 -0400 @@ -274,6 +274,11 @@ ;; Be careful not to match "sub { (...) ... }". ("\\ c") + (0 (ignore (put-text-property (match-beginning 0) (match-end 0) + 'syntax-multiline t)))) ;; Regexp and funny quotes. Distinguishing a / that starts a regexp ;; match from the division operator is ...interesting. ;; Basically, / is a regexp match if it's preceded by an infix operator