[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cperl-mode] fontification problem with PODs
From: |
LanX |
Subject: |
[cperl-mode] fontification problem with PODs |
Date: |
Wed, 21 Oct 2009 06:36:39 -0700 (PDT) |
User-agent: |
G2/1.0 |
Hi
I experienced a problem with the fontification of POD's.
In the following example the second line is not classified as pod but
the keyword "for" is considered part of a loop statement.
--------------------------
lanx@nc10-ubuntu:~/tmp$ cat perlpod.pm
for (1..9) {print}
=for comment
This B<document> is in Pod format. To read this, use a Pod formatter,
like "perldoc perlpod".
=cut
---------------------------
which might be OK since there is an empty line missing between POD and
code.
So adding a newline at the second line should solve the problem, but
doesn't do so!!!
Strangely this problem is NOT present when calling emacs with -Q
---------------------------
lanx@nc10-ubuntu:~/tmp$ emacs -Q perlpod.pm -f cperl-mode
---------------------------
So adding the newline solves the problem!
And calling "M-x describe-text-properties" shows that the POD-text is
classified as such.
This emacs is bundled with cperl-mode.5.23.
Now I tried to figure out which cperl-mode version is causing the
problem, since I had 6.2 loaded in my configs.
---------------------------
lanx@nc10-ubuntu:~/tmp$ emacs -Q -l cperl-mode.el perlpod.pm -f cperl-
mode
lanx@nc10-ubuntu:~/tmp$ ll cperl-mode.el
lrwxrwxrwx 1 lanx lanx 18 2009-10-21 05:51 cperl-mode.el -> cperl-
mode.el.5.24
lanx@nc10-ubuntu:~/tmp$ ll cperl-mode.el*
lrwxrwxrwx 1 lanx lanx 18 2009-10-21 05:51 cperl-mode.el -> cperl-
mode.el.5.24
-r-------- 1 lanx lanx 399064 2009-10-21 05:48 cperl-mode.el.5.22
-r-------- 1 lanx lanx 395839 2009-10-21 05:32 cperl-mode.el.5.24
-r-------- 1 lanx lanx 402932 2009-10-21 05:32 cperl-mode.el.6.2
---------------------------
But it doesn't matter which version I'm loading the problem remains. I
also tried emacs23 instead of emacs22, without success.
It seems that loading another cperl-mode version causes conflicts with
the bundled version!
So effectively one has to stick with the bundled version ... :(
cheers
Rolf
- [cperl-mode] fontification problem with PODs,
LanX <=