diff options
| author | Stefan Monnier | 2008-04-03 22:10:44 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-04-03 22:10:44 +0000 |
| commit | 957e449ecc6c52f69236ce25bfc4487b5e5b7068 (patch) | |
| tree | 92e1ac421cdbe640afbc683b8f3dca63dd6e04e8 | |
| parent | 7c655cf643671126b4c3aa3b574b8ac5efbd9bd3 (diff) | |
| download | emacs-957e449ecc6c52f69236ce25bfc4487b5e5b7068.tar.gz emacs-957e449ecc6c52f69236ce25bfc4487b5e5b7068.zip | |
(perl-font-lock-syntactic-keywords): Recognize `sub ($$)'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-04-03 Richard Sharman <rsharman@pobox.com> | 6 | 2008-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]*\\(/\\)" |