GNU bug report logs -
#66161
30.0.50; cperl-mode bug in fontification after __END__
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Fri, 22 Sep 2023 22:50:01 UTC
Severity: minor
Found in version 30.0.50
Done: Harald Jörg <haj <at> posteo.de>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 66161-done <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 1 year and 275 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.