# HG changeset patch # User Stefan Monnier # Date 1212477534 0 # Node ID 313549362857ab766416fef3e9c5aeb7a65805f9 # Parent e80f4eb078ee3bef83d4c2fc723347233af185d1 (perl-font-lock-syntactic-keywords): Try to be yet a bit more clever at distinguishing / from /. diff -r e80f4eb078ee -r 313549362857 lisp/ChangeLog --- a/lisp/ChangeLog Tue Jun 03 06:22:40 2008 +0000 +++ b/lisp/ChangeLog Tue Jun 03 07:18:54 2008 +0000 @@ -1,3 +1,8 @@ +2008-06-03 Stefan Monnier + + * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords): Try to be + yet a bit more clever at distinguishing / from /. + 2008-06-03 Kenichi Handa * Makefile.in (ELCFILES): Add $(lisp)/language/hanja-util.elc. diff -r e80f4eb078ee -r 313549362857 lisp/progmodes/perl-mode.el --- a/lisp/progmodes/perl-mode.el Tue Jun 03 06:22:40 2008 +0000 +++ b/lisp/progmodes/perl-mode.el Tue Jun 03 07:18:54 2008 +0000 @@ -252,7 +252,7 @@ ;; (defvar perl-font-lock-syntactic-keywords ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") - '(;; Turn POD into b-style comments + `(;; Turn POD into b-style comments ("^\\(=\\)\\sw" (1 "< b")) ("^=cut[ \t]*\\(\n\\)" (1 "> b")) ;; Catch ${ so that ${var} doesn't screw up indentation. @@ -267,12 +267,27 @@ ;; Be careful not to match "sub { (...) ... }". ("\\