From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Giuliano Procida" Newsgroups: gmane.emacs.bugs Subject: perl-mode - fix syntax of anonymous sub prototypes Date: Fri, 28 Mar 2008 17:37:08 +0000 Message-ID: <5c8016cf0803281037q5c64bd21le5e3359ddadca955@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206755282 12535 80.91.229.12 (29 Mar 2008 01:48:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 01:48:02 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 02:48:33 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfQBL-0000QZ-Um for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 02:48:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfQAk-0000jY-I9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2008 21:47:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfIW5-0001dp-LY for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2008 13:37:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfIW4-0001d2-5D for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2008 13:37:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfIW4-0001cs-22 for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2008 13:37:24 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfIW3-0006pn-K5 for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2008 13:37:23 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so219806nfh.26 for ; Fri, 28 Mar 2008 10:37:09 -0700 (PDT) Original-Received: by 10.78.142.14 with SMTP id p14mr10544175hud.65.1206725828798; Fri, 28 Mar 2008 10:37:08 -0700 (PDT) Original-Received: by 10.78.198.16 with HTTP; Fri, 28 Mar 2008 10:37:08 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 28 Mar 2008 21:47:40 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17756 Archived-At: Hi. GNU Emacs 22.1.1 (i386-pc-solaris2.10, X toolkit) of 2008-02-11 on robot Constructs like this: my $del = sub($) { my ($old) = @_; return if not active($old); &$delete_row($old->{$fde_id}); }; upset later indentation as the $ in the sub($) has the default backslash syntax class (instead of being treated specially as in non-anonymous sub definitions) and then the "sub(" triggers the hanging parens check. The fix is to modify perl-font-lock-syntactic-keywords to have: ;; Funny things in sub arg specifications like `sub myfunc ($$)' and `sub ($)' ("\\