unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Harald Jörg" <haj@posteo.de>
To: 65834-done@debbugs.gnu.org
Subject: bug#65834: 29.1; highlighting bug in CPerl mode: here-document false positive
Date: Sat, 14 Oct 2023 18:03:10 +0000	[thread overview]
Message-ID: <87lec56q01.fsf@oook.m.uunet.de> (raw)
In-Reply-To: <87a5twbbgx.fsf@zira.vinc17.org>

Thanks for spotting this.  Indeed, the "<<" has been mistaken as a
here-document starter.

In particular, CPerl mode treated it as a here-document with an empty
delimiter: In "<<5", the "5" is not a valid identifier.  A line checking
for digits following the "<<" has been commented out in 1999 for reasons
unrecoverable by now, but luckily this check is not required.

Empty, unquoted delimiters have been deprecated in Perl in 2013 and are
illegal as of Perl 5.28.  They are now no longer allowed in CPerl mode
as well, which avoids mis-interpreting the code from the bug report.

This also fixes the display of the mailgraph script.

Therefore, I'm closing this bug report.

-- 
Cheers,
haj





      parent reply	other threads:[~2023-10-14 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08 21:29 bug#65834: 29.1; highlighting bug in CPerl mode: here-document false positive Vincent Lefevre
2023-09-10  7:45 ` Stefan Kangas
2023-10-14 18:03 ` 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=87lec56q01.fsf@oook.m.uunet.de \
    --to=haj@posteo.de \
    --cc=65834-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).