From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: (cperl-mode) Problems with syntax highlighting after __DATA__ ! Date: Thu, 21 Oct 2010 04:43:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <496a9e4f-414a-44c2-8f3e-a83071743a5c@a36g2000yqc.googlegroups.com> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291874017 25380 80.91.229.12 (9 Dec 2010 05:53:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:53:37 +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 06:53:33 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 1PQZRd-0005Fa-8c for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:53:33 +0100 Original-Received: from localhost ([127.0.0.1]:34099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQZRc-0007UT-AB for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:53:32 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!a36g2000yqc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 89.12.82.211 Original-X-Trace: posting.google.com 1287661428 10842 127.0.0.1 (21 Oct 2010 11:43:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 21 Oct 2010 11:43:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a36g2000yqc.googlegroups.com; posting-host=89.12.82.211; posting-account=zOOXDwgAAAAi0tA6rMyFDghoWI7QL8B_ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181923 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:76763 Archived-At: Hi back again was travelling the last days... > SM> Yes, of course: short of using multiple major modes (which is somethi= ng > SM> Emacs doesn't support very well for now), there's not much highlighti= ng > SM> we can do other than assuming Perl syntax. > > I think it's not that bad. =A0__DATA__ is the same content (semantically) > as a here-file, or a POD-section , i.e. natural solution would be comment-face. (like most other editors I tested do, just check vim) __END__ is practically the same as __DATA__ and Ilya is right those sections are terminated only by EOF. @Stefan: I'm not talking about highlighting according to HTML just wanna avoid the perl-parser to hang the system. @Ilya: Sorry the HTML is confidential, I'm even not allowed to publish parts of it, e.g. by stripping the text between the markup. :( And I wasn't able to reproduce it. FWIW my workaround at the moment is to start the __DATA__ section with ---------- =3Dpod ----------- to avoid syntaxification.