From a9bc137f5ec9d474b035afdbd0de9b0a5fe73c5e Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 3 Jun 2008 07:18:54 +0000 Subject: [PATCH] (perl-font-lock-syntactic-keywords): Try to be yet a bit more clever at distinguishing / from /. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/perl-mode.el | 23 +++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index de57acf56b6..a58fc460289 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 22d9b488cc6..c92ac4252da 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -252,7 +252,7 @@ The expansion is entirely correct because it uses the C preprocessor." ;; (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 @@ The expansion is entirely correct because it uses the C preprocessor." ;; Be careful not to match "sub { (...) ... }". ("\\