diff options
| author | Stefan Monnier | 2007-11-30 19:21:33 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-11-30 19:21:33 +0000 |
| commit | a0e3c626e8bbbf06d0c3da0011ab71986c6ee073 (patch) | |
| tree | 7b36b5f98a3cc4894055811878a5608b7cc06539 | |
| parent | 40632cf37d267f920eaff09a1187227e50bafae4 (diff) | |
| download | emacs-a0e3c626e8bbbf06d0c3da0011ab71986c6ee073.tar.gz emacs-a0e3c626e8bbbf06d0c3da0011ab71986c6ee073.zip | |
(perl-font-lock-syntactic-keywords): Don't match "sub { (...) ... }".
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e94db35386c..f54280e5651 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-11-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords): | ||
| 4 | Don't match "sub { (...) ... }". | ||
| 5 | |||
| 1 | 2007-11-29 Richard Stallman <rms@gnu.org> | 6 | 2007-11-29 Richard Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * international/mule-cmds.el (toggle-input-method-active): New var. | 8 | * international/mule-cmds.el (toggle-input-method-active): New var. |
| @@ -45,8 +50,8 @@ | |||
| 45 | 50 | ||
| 46 | 2007-11-16 Eli Zaretskii <eliz@gnu.org> | 51 | 2007-11-16 Eli Zaretskii <eliz@gnu.org> |
| 47 | 52 | ||
| 48 | * international/mule-cmds.el (set-locale-environment): Set | 53 | * international/mule-cmds.el (set-locale-environment): |
| 49 | default-file-name-coding-system _after_ keyboard and terminal | 54 | Set default-file-name-coding-system _after_ keyboard and terminal |
| 50 | coding systems. This fixes last change. | 55 | coding systems. This fixes last change. |
| 51 | 56 | ||
| 52 | * mail/rmail.el (rmail-current-subject-regexp): Allow more than | 57 | * mail/rmail.el (rmail-current-subject-regexp): Allow more than |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 809ed7a9f36..ee14100f56d 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -266,7 +266,9 @@ The expansion is entirely correct because it uses the C preprocessor." | |||
| 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 specifications like `sub myfunc ($$)' |
| 269 | ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1)) | 269 | ;; Be careful not to match "sub { (...) ... }". |
| 270 | ("\\<sub[[:space:]]+[^{}[:punct:][:space:]]+[[:space:]]*(\\([^)]+\\))" | ||
| 271 | 1 '(1)) | ||
| 270 | ;; Regexp and funny quotes. | 272 | ;; Regexp and funny quotes. |
| 271 | ("\\(?:[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)" | 273 | ("\\(?:[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)" |
| 272 | (2 (if (and (match-end 1) | 274 | (2 (if (and (match-end 1) |