]> git.eshelyaron.com Git - emacs.git/commit
; 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 Jan 2025 21:59:32 +0000 (22:59 +0100)
commit46a30657b7ff9cdc4cd087b08db3c32bd9c0a931
tree5520834b7801c133bfbe9282a0e7ddd901e75530
parent8ecb9865e50041e5842c541337317e63e757f41f
; 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.

(cherry picked from commit b74ac4af9408230645f1edb56c410b7a80bb41d2)
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-tests.el