GNU bug report logs -
#12373
24.1; cperl-mode syntax highlighting
Previous Next
Reported by: Stefan Gottschalk <sgottschalk <at> nvidia.com>
Date: Thu, 6 Sep 2012 17:21:02 UTC
Severity: normal
Tags: unreproducible
Found in version 24.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 12373 <at> debbugs.gnu.org (full text, mbox):
Hi, Stefan.
Thanks for looking at this.
I tried your repro - and it works fine for me too.
My apologies!
I will work up a better repro - or be happy that I can't make it happen!
-stefan
-----Original Message-----
From: Stefan Monnier [mailto:monnier <at> iro.umontreal.ca]
Sent: Tuesday, October 30, 2012 10:03 PM
To: Stefan Gottschalk
Cc: 12373 <at> debbugs.gnu.org
Subject: Re: bug#12373: 24.1; cperl-mode syntax highlighting
> 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
This bug report was last modified 8 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.