From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: Is this a bug in cperl mode Date: Mon, 17 Feb 2003 19:33:03 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20030211222108.11234512.occitan@esperanto.org> <20030217090455.2ec904d2.occitan@esperanto.org> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045510419 13563 80.91.224.249 (17 Feb 2003 19:33:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 19:33:39 +0000 (UTC) Bcc: ilya 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 18kr1D-0003WX-00 for ; Mon, 17 Feb 2003 20:33:35 +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 18kr35-0002nD-05 for gnu-help-gnu-emacs@m.gmane.org; Mon, 17 Feb 2003 14:35:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!ilya Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: powdermilk.math.berkeley.edu Original-X-Trace: agate.berkeley.edu 1045510383 11807 169.229.140.13 (17 Feb 2003 19:33:03 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Mon, 17 Feb 2003 19:33:03 +0000 (UTC) X-How-To-Reach-Me: The From: address is valid X-How-To-Disable-Cc: Put in the headers the line: Mail-Copies-To: never Originator: ilya@powdermilk Original-Xref: shelby.stanford.edu gnu.emacs.help:110301 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:6803 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6803 [A complimentary Cc of this posting was sent to Daniel Pfeiffer ], who wrote in article <20030217090455.2ec904d2.occitan@esperanto.org>: > 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? I remove your "(wrong!)", showing how the things may appear in real-world Perl code. > > > $opt_s!asd!bsd! > > > > This is OK with cperl-under-as-char TRUE. > Which is otherwise undesirable, as it breaks conventions Emacs users expect. Emacs being such a mess, there is nothing "Emacs users expect". Perl users expect that _ is a word char. > > @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 4th case (IIRC originally posted here) was with $opt_s. Ilya