From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harald =?UTF-8?Q?J=C3=B6rg?= Newsgroups: gmane.emacs.bugs Subject: bug#66161: cperl-mode: fontification after __END__ Date: Sat, 14 Oct 2023 18:37:55 +0000 Message-ID: <87fs2d6oe4.fsf@oook.m.uunet.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28546"; mail-complaints-to="usenet@ciao.gmane.io" To: 66161-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 20:39:03 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrjXS-0007Cc-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 20:39:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrjX6-0002Es-JR; Sat, 14 Oct 2023 14:38:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrjX5-0002Ea-3d for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 14:38:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrjX4-0006eH-Rs for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 14:38:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrjXS-0005oe-6L for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 14:39:02 -0400 In-Reply-To: Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 18:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 66161 X-GNU-PR-Package: emacs Mail-Followup-To: 66161@debbugs.gnu.org, haj@posteo.de, maurooaranda@gmail.com Original-Received: via spool by 66161-done@debbugs.gnu.org id=D66161.169730871122305 (code D ref 66161); Sat, 14 Oct 2023 18:39:01 +0000 Original-Received: (at 66161-done) by debbugs.gnu.org; 14 Oct 2023 18:38:31 +0000 Original-Received: from localhost ([127.0.0.1]:50502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrjWx-0005nh-39 for submit@debbugs.gnu.org; Sat, 14 Oct 2023 14:38:31 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrjWs-0005nN-Qu for 66161-done@debbugs.gnu.org; Sat, 14 Oct 2023 14:38:30 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C686A240028 for <66161-done@debbugs.gnu.org>; Sat, 14 Oct 2023 20:37:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1697308676; bh=2ioxbu0X3PRGUJm0fc4gul7aMEaTmX+OAlnmvMg9sHY=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=PG+7RxgKZoKSKnTXErteMzkGvj07i/yFE0ztdiQmetT/QULFK6Cov9IFWnutCDyWX aRZNvm53epfrosxv9gEHPcMxoV4SvQwrZ7uOGU8Td8VuySgaFBIPZd1BPPuUm1Dp2+ /l4/gBp2FC5zpXpNR+BiapVcv0I971g5Hqk19HpvWbyrOsOjphiKl043+VGq41O5Y0 QUd0/UnbHJzr9aDpd7YTCZYcnzpKy/XkVKY+e/70xEb3C00uSNei1h7Etz8xg6rjdR KqToM9SC7CHAyVuMb5ArqOFi1GNqujhn/aaQeRffy2yO0kGZTBjicsTii/9DNNTAJu oGgC0OYtFT0/A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S7BvS28JLz6twR for <66161-done@debbugs.gnu.org>; Sat, 14 Oct 2023 20:37:56 +0200 (CEST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272457 Archived-At: 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