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: Fri, 29 Sep 2023 16:12:31 +0000 Message-ID: <871qehyn4g.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="30868"; mail-complaints-to="usenet@ciao.gmane.io" To: 66161@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 29 18:14:17 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 1qmG89-0007nq-5K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Sep 2023 18:14:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmG7i-0000eY-PC; Fri, 29 Sep 2023 12:13:50 -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 1qmG7g-0000cX-Sq for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 12:13:49 -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 1qmG7g-0005bT-G9 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 12:13:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmG7u-00060j-Lf for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 12:14:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2023 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66161 X-GNU-PR-Package: emacs Original-Received: via spool by 66161-submit@debbugs.gnu.org id=B66161.169600401823034 (code B ref 66161); Fri, 29 Sep 2023 16:14:02 +0000 Original-Received: (at 66161) by debbugs.gnu.org; 29 Sep 2023 16:13:38 +0000 Original-Received: from localhost ([127.0.0.1]:57007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmG7V-0005zS-R9 for submit@debbugs.gnu.org; Fri, 29 Sep 2023 12:13:38 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:42809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmG7P-0005yw-Bu for 66161@debbugs.gnu.org; Fri, 29 Sep 2023 12:13:36 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1D819240101 for <66161@debbugs.gnu.org>; Fri, 29 Sep 2023 18:13:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1696003987; bh=IHmnbR12iEbV1c20tsrpwkCUibPq6WaBGeAI1YJw8Lg=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=rxHZVlxyOn7WcU06KxVM6TQkgKJJ1tsvRrTJm/LnNToFV2Aid/Zo2OfRvyUG5Ch+b NIXPaygsa+sEe3af3xiw1h4zm9hlja1toOhq0D6u3nNu48UV4aIW12j52lK733bTcE irv+kqk9fM/HySqm+8VAmeIN9lPOLUANLVxeqJvO+1l847qqd9ZyFXIR8lsPLSnMGX mJnDuV+yqYn1Ta5GrO8s/dhBpek1sIvydEbm/q+TPbUpLIu7uq0ocqGb06y//289In GdRHsLOpzr1pZQKtzNEEULN30o2NdhH4ps+a7zXyv9UudQaSwQoXCHtMAfdXvKAZ5n QtQUhzLAr4h6A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RxwNc2Nnnz6v4k for <66161@debbugs.gnu.org>; Fri, 29 Sep 2023 18:12:32 +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:271506 Archived-At: CPerl mode fontifies Text after __END__ (and also after a __DATA__ token) like Perl - and I guess that this is intentional, supporting two use cases of such text: - The AutoSplit and SelfLoader modules (both available in the Perl core) compile Perl sources written after these tokens only on demand (when they're first called). For sources using these modules, treating these texts as Perl code is useful. However, these days both modules are rarely used in new code. - The POD (Perl's documentation format) tools ignore the tokens, so many authors put their documentation after an __END__ token to speed up compilation. For all other uses of the tokens (e.g. as a delimiter for end-of-file comments), the fontification of CPerl mode looks messed up. So I agree that finding a way to make these texts less "colorful" makes sense. perl-mode treats text after these tokens as a "c-style comment". This is elegant, but I would not want to apply this unconditionally to cperl-mode: comments are excluded from imenu indexing, which cperl-mode performs for both subroutines and POD headings. -- Cheers, haj