From: "Harald Jörg" <haj@posteo.de>
To: 66161-done@debbugs.gnu.org
Subject: bug#66161: cperl-mode: fontification after __END__
Date: Sat, 14 Oct 2023 18:37:55 +0000 [thread overview]
Message-ID: <87fs2d6oe4.fsf@oook.m.uunet.de> (raw)
In-Reply-To: <f1128181-0df9-1548-2b87-204b381c8e34@gmail.com>
This has now been solved in the master branch by adding a new option
`cperl-fontify-trailer': If the value is "perl-code" (the default),
then cperl-mode treats it as code. If the value is "comment", then
cperl-mode treats text after __END__ (and text after __DATA__) as
comment.
Here are some popular modules from CPAN to illustrate the different use
cases for text after __END__. In my opinion this justifies the
introduction of yet another option:
- POD documentation after __END__ is seen in Moo (and many others):
https://metacpan.org/dist/Moo/source/lib/Moo.pm
- Perl code after __END__ is used in Tk:
https://metacpan.org/dist/Tk/source/Tk.pm
- Trailing comments are used in Pod::Simple:
https://metacpan.org/dist/Pod-Simple/source/lib/Pod/Simple.pm
Therefore, I am closing this bug report.
--
Cheers,
haj
prev parent reply other threads:[~2023-10-14 18:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-22 22:49 bug#66161: 30.0.50; cperl-mode bug in fontification after __END__ Mauro Aranda
2023-09-29 16:12 ` bug#66161: cperl-mode: " Harald Jörg
2023-10-14 18:37 ` Harald Jörg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fs2d6oe4.fsf@oook.m.uunet.de \
--to=haj@posteo.de \
--cc=66161-done@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).