]> git.eshelyaron.com Git - emacs.git/commitdiff
(perl-font-lock-syntactic-keywords):
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Sep 2005 19:54:49 +0000 (19:54 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Sep 2005 19:54:49 +0000 (19:54 +0000)
Fix regexp for when "s///" is at the beginning of line.

lisp/ChangeLog
lisp/progmodes/perl-mode.el

index 89dc0c3a3df75078ca70c68d56a65ce58184ee30..c899dad69a84c32e87fffbc9632f6040188dfd53 100644 (file)
@@ -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
index 7991f1fd1b42883e79c93f18a1126dccb7ccbd9f..e1af8b0f00738abaa346406203d350ed32ddccc9 100644 (file)
@@ -267,12 +267,12 @@ The expansion is entirely correct because it uses the C preprocessor."
     ("\\<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\\|['\"]\\)")