aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-03 22:10:44 +0000
committerStefan Monnier2008-04-03 22:10:44 +0000
commit957e449ecc6c52f69236ce25bfc4487b5e5b7068 (patch)
tree92e1ac421cdbe640afbc683b8f3dca63dd6e04e8
parent7c655cf643671126b4c3aa3b574b8ac5efbd9bd3 (diff)
downloademacs-957e449ecc6c52f69236ce25bfc4487b5e5b7068.tar.gz
emacs-957e449ecc6c52f69236ce25bfc4487b5e5b7068.zip
(perl-font-lock-syntactic-keywords): Recognize `sub ($$)'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/perl-mode.el4
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 @@
12008-04-03 Giuliano Procida <giuliano.procida@googlemail.com> (tiny change)
2
3 * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords):
4 Recognize `sub ($$)'.
5
12008-04-03 Richard Sharman <rsharman@pobox.com> 62008-04-03 Richard Sharman <rsharman@pobox.com>
2 7
3 * hilit-chg.el (highlight-changes-mode): Rename from 8 * 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."
265 ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_")) 265 ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_"))
266 ;; format statements 266 ;; format statements
267 ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7))) 267 ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7)))
268 ;; Funny things in sub arg specifications like `sub myfunc ($$)' 268 ;; Funny things in `sub' arg-specs like `sub myfun ($)' or `sub ($)'.
269 ;; Be careful not to match "sub { (...) ... }". 269 ;; Be careful not to match "sub { (...) ... }".
270 ("\\<sub[[:space:]]+[^{}[:punct:][:space:]]+[[:space:]]*(\\([^)]+\\))" 270 ("\\<sub\\(?:[[:space:]]+[^{}[:punct:][:space:]]+\\)?[[:space:]]*(\\([^)]+\\))"
271 1 '(1)) 271 1 '(1))
272 ;; Regexp and funny quotes. 272 ;; Regexp and funny quotes.
273 ("\\(?:[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)" 273 ("\\(?:[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)"