; cperl-mode.el: Allow bare $ in a signature (Bug#74245)
authorHarald Jörg <haj@posteo.de>
Mon, 13 Jan 2025 11:24:40 +0000 (12:24 +0100)
committerHarald Jörg <haj@posteo.de>
Mon, 13 Jan 2025 11:24:40 +0000 (12:24 +0100)
commitb74ac4af9408230645f1edb56c410b7a80bb41d2
tree1870231f83a14e87e65d69cc5d44d96e2c784bd8
parentd66b8d4becb6804d3bd912a000dc64ccfdbe6810
; cperl-mode.el: Allow bare $ in a signature (Bug#74245)

* lisp/progmodes/cperl-mode.el (cperl--signature-rx): Allow bare
sigils for unused parameters in signatures.
(cperl-find-pods-heres): Avoid $) at the end of a signature being
treated as the punctuation variable $) by treating this dollar as
punctuation

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-signature-rx): Add ($first,$) as a valid signature,
remove ($) from the list of invalid signatures.
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-tests.el