From ed0e2ad11b2b80f7a8505b72285c7ff041a5b37b Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 16 Aug 2007 14:20:37 +0000 Subject: [PATCH] (perl-font-lock-syntactic-keywords): Correctly match / regexp matchers as first char on a line when fontifying only that line. --- lisp/ChangeLog | 4 ++++ lisp/progmodes/perl-mode.el | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 16edb11518..33b2c21eee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2007-08-16 Stefan Monnier + * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords): + Correctly match / regexp matchers as first char on a line when + fontifying only that line. + * emacs-lisp/cl-macs.el (cl-transform-lambda): Preserve the match-data. 2007-08-16 Glenn Morris diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index cfef0eedfe..f2feff595b 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -267,8 +267,16 @@ The expansion is entirely correct because it uses the C preprocessor." ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7))) ;; Funny things in sub arg specifications like `sub myfunc ($$)' ("\\\\s-*\\([^])}> \n\t]\\)" ;; Nasty cases: ;; /foo/m $a->m $#m $m @m %m -- 2.20.1