]> git.eshelyaron.com Git - emacs.git/commit
; cperl-mode.el: Detect prototypes in anonymous subroutines
authorHarald Jörg <haj@posteo.de>
Wed, 2 Feb 2022 21:30:09 +0000 (22:30 +0100)
committerHarald Jörg <haj@posteo.de>
Wed, 2 Feb 2022 21:42:05 +0000 (22:42 +0100)
commitc882b4ea02b705d866fbcdd886b577b9592479fe
treedec72b06371f6e7ac460410ad800573be39e6ff7
parentaa795a6223c31ec8804f2824c435dba3091c115f
; 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
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-resources/proto-and-attrs.pl [new file with mode: 0644]
test/lisp/progmodes/cperl-mode-tests.el