cperl-mode.el: Support Perl 5.38 syntax for subroutine signatures
authorHarald Jörg <haj@posteo.de>
Sat, 1 Jul 2023 19:37:29 +0000 (21:37 +0200)
committerHarald Jörg <haj@posteo.de>
Sat, 1 Jul 2023 19:40:46 +0000 (21:40 +0200)
commitce8e6cea4213ce08d04507632546dfe02cc7410b
treeb8850b4ca5b22ec85476e0e4af0d5203d9f70bf2
parent75278855f4ac0c4514c0e343cd0248ef5c814ff4
cperl-mode.el: Support Perl 5.38 syntax for subroutine signatures

* lisp/progmodes/cperl-mode.el (defconst): New rx sequence
describing a signature with initialization.
(cperl-init-faces): integrate the new rx sequence into the
font-lock-defaults init routine (Bug#64190) (Bug#64364).

* test/lisp/progmodes/cperl-mode-resources/cperl-bug-64364.pl: Add
test data for a signature with initialization (tests indentation).

* test/lisp/progmodes/cperl-mode-resources/proto-and-attrs.pl: Add
test data for a signature with initialization (tests fontification).
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-resources/cperl-bug-64364.pl
test/lisp/progmodes/cperl-mode-resources/proto-and-attrs.pl