From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: (cperl-mode) Problems with syntax highlighting after __DATA__ ! Date: Sun, 24 Oct 2010 05:59:07 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Message-ID: References: <6dc535d1-ce05-449d-a3ff-d062f5e634d1@z28g2000vba.googlegroups.com> <55f6a9f1-fd98-4069-9bf8-8e3e550f36af@30g2000yqm.googlegroups.com> <5e32a127-1e53-4f9d-899f-6c1329a5b589@i5g2000yqe.googlegroups.com> <70e70be1-3110-4136-97a0-dd8d923591de@28g2000yqm.googlegroups.com> <87wrpeqjkb.fsf@lifelogs.com> <496a9e4f-414a-44c2-8f3e-a83071743a5c@a36g2000yqc.googlegroups.com> <87aam6nrst.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1291887689 16282 80.91.229.12 (9 Dec 2010 09:41:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 09:41:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 10:41:25 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQd09-0001gW-AK for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 10:41:25 +0100 Original-Received: from localhost ([127.0.0.1]:48326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQd08-0002gE-7D for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 04:41:24 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Injection-Date: Sun, 24 Oct 2010 05:59:07 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="LlLjF8LevGdIZWbTvv+SXA"; logging-data="22762"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195piFhViwxGy6vZiWr8iVn" User-Agent: slrn/0.9.8.1pl1 (Linux) Cancel-Lock: sha1:pM9qLXhB2M7y89pQjoGaCI2IpdI= Original-Xref: usenet.stanford.edu gnu.emacs.help:181971 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76928 Archived-At: On 2010-10-22, Ted Zlatanov 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 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