Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 6, 2008, 12:27 am
rate this thread
emacs GNU Emacs 21.4.1, with CPerl mode enabled.
on debian sid.
I am writing a gtk2-pel program and I noticed that CPerl goes crazy
with the syntax highling
going off, and also the indenting C-M--\ not working for a few lines
if I use variables like
my my $old_z=3;
my $old_y = 4;
some more lines of code
the second line shows the 4 in a funny color
an dthen the next couple of lines get a "greyed out look",
and when I try to indent it leaves the next lines pushed to the left
All goes back to normal if I do
my $oldx = 3;
my $oldy = 4;
Why is this. Same with $main::old_x and $main::old_y.
Re: CPerl mode problem: syntax highlighting stumbles over my $old_z=3; my $old_y=4;
Thank you, I did the upgrade and the problem is gone.
Thank you - that was precisely the code. Just 2 lines containing
$old_x and $old_y messed up the syntax highlighting for about 5 lines.
I also googled around some more last night and found earlier reports
of this and instructions on how to modify
the old .el file to fix this. As Ilya says there were some unfortunate
modifications of the cperl.el file.
The modifications considered _ in a variable name as some kind of
punctuation or something (it was over my head :)).
Anyway it is ok in emacs22.1.1 on my machine now. YAY!
thank you (I thought I was running up to date sid! shows you how out
of date I was!).