From: Stefan Monnier Date: Tue, 3 Jun 2008 07:18:54 +0000 (+0000) Subject: (perl-font-lock-syntactic-keywords): Try to be X-Git-Tag: emacs-pretest-23.0.90~5140 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a9bc137f5ec9d474b035afdbd0de9b0a5fe73c5e;p=emacs.git (perl-font-lock-syntactic-keywords): Try to be yet a bit more clever at distinguishing / from /. --- 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 { (...) ... }". ("\\