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: Sun, 16 Feb 2003 02:56:22 +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: <841y2gv5zf.fsf@lucy.is.informatik.uni-duisburg.de> <20030211222108.11234512.occitan@esperanto.org> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045364370 10529 80.91.224.249 (16 Feb 2003 02:59:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2003 02:59:30 +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 18kF1c-0002jg-00 for ; Sun, 16 Feb 2003 03:59:28 +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 18kF2g-0007dt-04 for gnu-help-gnu-emacs@m.gmane.org; Sat, 15 Feb 2003 22:00:34 -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: 35 Original-NNTP-Posting-Host: powdermilk.math.berkeley.edu Original-X-Trace: agate.berkeley.edu 1045364182 69358 169.229.140.13 (16 Feb 2003 02:56:22 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Sun, 16 Feb 2003 02:56:22 +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:110243 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:6745 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6745 [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 > $opt_s!asd!bsd! This is OK with cperl-under-as-char TRUE. > $opt::s!asd!bsd! $opt::s = $foo = $bar =exe; # Warnings, but no error > $opt{s}asd}bsd} $opt{s} = ({asd => 1}, {bsd => 1}); > (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. In my experience, the others appear much much rarer. Ilya