From 957e449ecc6c52f69236ce25bfc4487b5e5b7068 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 3 Apr 2008 22:10:44 +0000 Subject: [PATCH] (perl-font-lock-syntactic-keywords): Recognize `sub ($$)'. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/perl-mode.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ca6be0f0d1d..d8aad9da953 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-04-03 Giuliano Procida (tiny change) + + * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords): + Recognize `sub ($$)'. + 2008-04-03 Richard Sharman * hilit-chg.el (highlight-changes-mode): Rename from diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index b0f513fb996..f1d1a38d950 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -265,9 +265,9 @@ The expansion is entirely correct because it uses the C preprocessor." ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_")) ;; format statements ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7))) - ;; Funny things in sub arg specifications like `sub myfunc ($$)' + ;; Funny things in `sub' arg-specs like `sub myfun ($)' or `sub ($)'. ;; Be careful not to match "sub { (...) ... }". - ("\\