From dcc6da3a1cf566b4ba8792814ebf93eed7581344 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 7 Sep 2005 19:54:49 +0000 Subject: [PATCH] (perl-font-lock-syntactic-keywords): Fix regexp for when "s///" is at the beginning of line. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/perl-mode.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 89dc0c3a3df..c899dad69a8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-09-07 Stefan Monnier + + * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords): + Fix regexp for when "s///" is at the beginning of line. + 2005-09-07 Jay Belanger * calc/calc-poly.el (math-expand-term): Multiply out any powers diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 7991f1fd1b4..e1af8b0f007 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -267,12 +267,12 @@ The expansion is entirely correct because it uses the C preprocessor." ("\\\\s-*\\([^])}> \n\t]\\)" + ("\\(^\\|[?:.,;=!~({[ \t]\\)\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" ;; Nasty cases: ;; /foo/m $a->m $#m $m @m %m ;; \s (appears often in regexps). ;; -s file - (2 (if (assoc (char-after (match-beginning 2)) + (3 (if (assoc (char-after (match-beginning 3)) perl-quote-like-pairs) '(15) '(7)))) ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") -- 2.39.5