From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Pfeiffer Newsgroups: gmane.emacs.help Subject: Re: Is this a bug in cperl mode Date: Mon, 17 Feb 2003 09:04:55 +0100 Organization: T-Online Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030217090455.2ec904d2.occitan@esperanto.org> References: <841y2gv5zf.fsf@lucy.is.informatik.uni-duisburg.de> <20030211222108.11234512.occitan@esperanto.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045469578 18672 80.91.224.249 (17 Feb 2003 08:12:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 08:12:58 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kgOW-0004r0-00 for ; Mon, 17 Feb 2003 09:12:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kgMg-0000aI-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 17 Feb 2003 03:11:02 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!teaser.fr!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 65 Original-X-Trace: news.t-online.com 1045469195 05 24443 Wz0hE79VSLYaKc 030217 08:06:35 Original-X-Complaints-To: abuse@t-online.com X-Sender: 520007185214-0001@t-dialin.net X-Newsreader: Sylpheed version 0.8.1claws (GTK+ 1.2.10; ) X-Operating-System: GNU/Linux of course X-Face: #O4jYYB1q_#GM@+5bpI17zYh*qp]@lt"%.HQGbezyU>Cm@cp>rdE97{c:@). kR3O3H&LeNb(Q\/E^f{g|i~#u\4!\lJ"jR; Cx&[\,\xjKcLei-_1\d&TAm\E3&(c|>cQIoik]V8Vdf Qs)St&=rh'+N6/WxXf.VfUnD[<; 9{#[ZWC>]FP$xVRgTLssqs)7nQ'sH@l[9b5oo1@llkNJPx;&H(^ o~/ Original-Xref: shelby.stanford.edu gnu.emacs.help:110265 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6767 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6767 Ilya Zakharevich skribis: > [A complimentary Cc of this posting was sent to > Daniel Pfeiffer > ], who wrote in article <20030211222108.11234512.occitan@esperanto.org>: > > Here is a little snippet of (wrong!) Perl code, which shows what is needed > > to catch each of the font-lock errors: > > > \$"asd" > > \$'asd' > > \$`asd` > > $a = \$"->asd(\$"); # syntaxically correct What are you trying to show? Of course if by hasard the matching end of construct is near, that corrects the situation. But usually they won't be near, unless it's a script written with your mode, where the friendly programmer set things up that way. (E.g. end of line comment with whatever CPerl mode is expecting) > > $opt_s!asd!bsd! > > This is OK with cperl-under-as-char TRUE. Which is otherwise undesirable, as it breaks conventions Emacs users expect. But your other post yesterday suggests you have a solution-idea for that. > > $opt::s!asd!bsd! > > $opt::s = $foo = $bar =exe; # Warnings, but no error As above. > > $opt{s}asd}bsd} > > $opt{s} = ({asd => 1}, {bsd => 1}); As above again. > > (s => ...)=bsd= > > @a = (s => ...); $b = $bsd =exe; > > > The fourth case is the one originally posted here. Both Ilya's and Emacs' > > modes fall into precisely the same traps. > > Nope, the 4th one is OK with my version. Not with SuSE 8.1's emacs -q --no-site-file (version 21.2) and M-x load-file your cperl version. I get the three "=" in light blue, "> ...); $b" in light brown, "$bsd" in black and "exe" in green. So again same as my first remark. > In my experience, the others > appear much much rarer. $opt{s} would be fairly common, and for giving it a default value @opt = (s => ...) coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn Daniel Pfeiffer -- GPL 3: take the wind out of Palladium's sails! -- ------ -- My other stuff here too, sawfish, make.pl...: -- ------ -- http://dapfy.bei.t-online.de/ --