From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Stefan Gottschalk <sgottschalk@nvidia.com>
Cc: 12373@debbugs.gnu.org
Subject: bug#12373: 24.1; cperl-mode syntax highlighting
Date: Tue, 30 Oct 2012 22:03:25 -0400 [thread overview]
Message-ID: <jwvehkfiet1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <yyrobljqeon.fsf@sc-xterm-12.nvidia.com> (Stefan Gottschalk's message of "Thu, 6 Sep 2012 09:49:44 -0700")
> Here's a real world sample input
> $fileType_filesButNot = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );
Hmm... handling of $' in Perl is tricky, so I wouldn't be surprised if
it still has bugs, but when I try a Perl file (using cperl-mode) with
just the above line in it, it is displayed correctly both by Emacs-23
and Emacs-24. Here's the command I used to test:
% emacs24 -Q --eval "(defalias 'cperl-mode 'perl-mode)" test/indent/perl.perl
And here's the perl.perl file:
#!/usr/bin/perl
$fileType_filesButNot # bug#12373
= join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );
Using `perl-mode' instead of `cperl-mode' also seems to work fine.
Can you send us another test case that exhibits the problem?
Stefan
next prev parent reply other threads:[~2012-10-31 2:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-06 16:49 bug#12373: 24.1; cperl-mode syntax highlighting Stefan Gottschalk
2012-10-31 2:03 ` Stefan Monnier [this message]
2012-10-31 11:24 ` Stefan Gottschalk
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=jwvehkfiet1.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=12373@debbugs.gnu.org \
--cc=sgottschalk@nvidia.com \
/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.