From: "Harald Jörg" <haj@posteo.de>
To: 69604@debbugs.gnu.org
Subject: bug#69604: perl-mode and cperl-mode: $\" in a double-quoted string
Date: Fri, 08 Mar 2024 07:25:45 +0000 [thread overview]
Message-ID: <87edcl6v7q.fsf@oook.m.uunet.de> (raw)
In-Reply-To: <87jzmetocr.5.fsf@jidanni.org>
Good catch! The same symptoms can be seen in cperl-mode.
Both perl-mode and cperl-mode treat "$" as quoting character in their
syntax tables. This is needed for Perl's punctuation variables like $(
and $" which would otherwise be interpreted as unbalanced parens or
quotes.
In a string, this safety belt is not required, and it actually misfires
in the case of "$\"", which is part of the demo code.
This is now treated correctly in the Emacs master branch for both
perl-mode and cperl-mode.
next prev parent reply other threads:[~2024-03-08 7:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 8:53 bug#69604: perl mode: quotes give wrong colors Dan Jacobson
2024-03-08 7:25 ` Harald Jörg [this message]
2024-03-08 8:32 ` bug#69604: perl-mode and cperl-mode: $\" in a double-quoted string Eli Zaretskii
2024-03-08 10:09 ` Harald Jörg
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edcl6v7q.fsf@oook.m.uunet.de \
--to=haj@posteo.de \
--cc=69604@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.