]> git.eshelyaron.com Git - emacs.git/commit
cperl-mode.el: Optionally treat trailing text as comment
authorHarald Jörg <haj@posteo.de>
Fri, 13 Oct 2023 22:34:41 +0000 (00:34 +0200)
committerHarald Jörg <haj@posteo.de>
Fri, 13 Oct 2023 22:34:41 +0000 (00:34 +0200)
commit3a1fc816288131a877345cea0f73258652cb7f57
tree6fb866d43ce28abd4945f816cfdc8753e2703eb7
parentbaf778c7caa0908789de7740aad719e168fffdf6
cperl-mode.el: Optionally treat trailing text as comment

* lisp/progmodes/cperl-mode.el (cperl-fontify-trailer): New
customization variable.  With a value of 'comment, cperl-mode
treats trailing text after after __END__ and __DATA__ as comment,
like perl-mode does (Bug#66161).
(cperl-find-pods-heres): Treat trailing text after __END__ and
__DATA__ according to the customization variable
`cperl-fontify-trailer'.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-66161):
New test, verifying the changed behavior if the custom variable is
set to 'comment.

* test/lisp/progmodes/cperl-mode-resources/cperl-bug-66161.pl: New
resource file, source code from the corresponding bug report.
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-resources/cperl-bug-66161.pl [new file with mode: 0644]
test/lisp/progmodes/cperl-mode-tests.el