LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I'm having a strange problem when inserting HTML-code after __DATA__.

My cperl-mode is trying to highlight the data and a large amount of "malformated" trs can make the editor unresponsive.(the <tr> markup is misinterpreted)

Before filing a bug-report, could someone please check if in the following code "s","g","for" and "print" are highlighted?

#!/usr/bin/perl __DATA__ s/huh/ttt/g for (1..9) { print "huhu"}

And please tell me the versions you use if you don't have this problem:

"M-x version"GNU Emacs 23.1.50.1

"C-h v cperl-version" Its value is "6.2"

Cheers Rolf

Replies are listed 'Best First'.
Re: (EMACS) please help checking a bug => highlighting after __DATA__
by MidLifeXis (Monsignor) on Oct 14, 2010 at 16:07 UTC

    M-x version:
    GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE
    C-h v cperl-version
    Its value is "5.23"

    Hmm, I guess I am a little behind on my emacs version.

    Paste of htmlized mode

    --MidLifeXis

      Thanks, it shows your having the same problem.

      (And thx, I forgot that there's an export to html ... :)

      I'm not sure if it's a bug or a feature, some CPAN-moduls have most of their code in the data-section.

      Cheers Rolf

Re: (EMACS) please help checking a bug => highlighting after __DATA__
by stefbv (Priest) on Oct 15, 2010 at 08:15 UTC

    Same highlighting behavior after __DATA__ with:

    GNU Emacs 23.2.1

    cperl-version "6.2"

    Greetings, Stefan

Re: (EMACS) Reproducible with Emacs21? (...highlighting after __DATA__)
by LanX (Saint) on Oct 15, 2010 at 10:32 UTC
    Anyone running emacs 21 who can reproduce it?

    see gnu.emacs.help thread!

    Cheers Rolf

    UPDATE: never mind I just installed emacs21 and was able to reproduce it.