diff options
| author | Harald Jörg | 2022-02-02 22:30:09 +0100 |
|---|---|---|
| committer | Harald Jörg | 2022-02-02 22:42:05 +0100 |
| commit | c882b4ea02b705d866fbcdd886b577b9592479fe (patch) | |
| tree | dec72b06371f6e7ac460410ad800573be39e6ff7 /lisp/progmodes | |
| parent | aa795a6223c31ec8804f2824c435dba3091c115f (diff) | |
| download | emacs-c882b4ea02b705d866fbcdd886b577b9592479fe.tar.gz emacs-c882b4ea02b705d866fbcdd886b577b9592479fe.zip | |
; cperl-mode.el: Detect prototypes in anonymous subroutines
My commit 3d49ad73e5a from 2021-09-143 had a flaw causing bad
fontification and indentation after anonymous subroutines with
a prototype.
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Correctly
process prototypes in anonymous subroutines
* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-fontify-attrs-and-signatures): new tests for various
combinations of attributes, prototypes, and signatures
* test/lisp/progmodes/cperl-mode-resources/proto-and-attrs.pl: new
test source
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 8f33b3e3b73..94ecc45b15f 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -3834,7 +3834,7 @@ recursive calls in starting lines of here-documents." | |||
| 3834 | "\\<" cperl-sub-regexp "\\>" ; sub with proto/attr | 3834 | "\\<" cperl-sub-regexp "\\>" ; sub with proto/attr |
| 3835 | "\\(" | 3835 | "\\(" |
| 3836 | cperl-white-and-comment-rex | 3836 | cperl-white-and-comment-rex |
| 3837 | (rx (group (eval cperl--normal-identifier-rx))) | 3837 | (rx (opt (group (eval cperl--normal-identifier-rx)))) |
| 3838 | "\\)" | 3838 | "\\)" |
| 3839 | "\\(" | 3839 | "\\(" |
| 3840 | cperl-maybe-white-and-comment-rex | 3840 | cperl-maybe-white-and-comment-rex |