changeset 65358:c136332c98dd

(perl-font-lock-syntactic-keywords): Fix regexp for when "s///" is at the beginning of line.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 07 Sep 2005 19:54:49 +0000
parents 86ed743ad197
children 71de05246686
files lisp/ChangeLog lisp/progmodes/perl-mode.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Sep 07 19:29:38 2005 +0000
+++ b/lisp/ChangeLog	Wed Sep 07 19:54:49 2005 +0000
@@ -1,3 +1,8 @@
+2005-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* 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  <belanger@truman.edu>
 
 	* calc/calc-poly.el (math-expand-term): Multiply out any powers
--- a/lisp/progmodes/perl-mode.el	Wed Sep 07 19:29:38 2005 +0000
+++ b/lisp/progmodes/perl-mode.el	Wed Sep 07 19:54:49 2005 +0000
@@ -267,12 +267,12 @@
     ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1))
     ;; regexp and funny quotes
     ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7)))
-    ("[?:.,;=!~({[ \t\n]\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\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\\|['\"]\\)")