[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !
From: |
Ilya Zakharevich |
Subject: |
Re: (cperl-mode) Problems with syntax highlighting after __DATA__ ! |
Date: |
Wed, 08 Dec 2010 15:33:07 -0000 |
User-agent: |
slrn/0.9.8.1pl1 (Linux) |
On 2010-10-22, Ted Zlatanov <tzz@lifelogs.com> wrote:
> L> or a POD-section , i.e. natural solution would be comment-face.
> L> (like most other editors I tested do, just check vim)
>
> L> __END__ is practically the same as __DATA__ and Ilya is right those
> L> sections are terminated only by EOF.
>
> Theoretically they are practically the same, but in practice they are not.
[Ignoring that, formally, this is content-free,] I believe you are mistaken.
> __END__ ends the Perl program and any __DATA__ effects.
No.
> Right. Perl won't parse after __DATA__ or __END__ no matter what.
Nevertheless, most of the time, it will.
> IZ> (The code to parse <DATA> may have some special logic to find your
> IZ> __X__; but it may look for whatever it wants as well...)
>
> There are at least a few CPAN modules that care, e.g. Inline::Files and
> company. So I think it's nice to highlight every __X__ marker instead
> of special-casing __DATA__ (__END__ has to be special because it means
> POD will start, usually).
I'm very wary about handling "quirks of Perl modules" - having handled
quirks of Perl itself. ;-)
Yours,
Ilya
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, (continued)
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, LanX, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, LanX, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Stefan Monnier, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Ted Zlatanov, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Ilya Zakharevich, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Ilya Zakharevich, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, LanX, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Ted Zlatanov, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, LanX, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, LanX, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !,
Ilya Zakharevich <=
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Stefan Monnier, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, LanX, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Ted Zlatanov, 2010/12/08
- Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Ilya Zakharevich, 2010/12/08
Re: (cperl-mode) Problems with syntax highlighting after __DATA__ !, Stefan Monnier, 2010/12/08