From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#13541: 24.2.92; awk-mode: wrong font locking regexp literals Date: Thu, 24 Jan 2013 22:16:04 +0000 Message-ID: <20130124221603.GB20483@acm.acm> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1359066205 8602 80.91.229.3 (24 Jan 2013 22:23:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2013 22:23:25 +0000 (UTC) Cc: sdl.web@gmail.com, 13541@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 24 23:23:44 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TyVCs-0001ED-25 for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jan 2013 23:23:38 +0100 Original-Received: from localhost ([::1]:51346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyVCa-0000X9-Kc for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jan 2013 17:23:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyVCT-0000Vi-Rs for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2013 17:23:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyVCN-0007uG-1j for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2013 17:23:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyVCE-0007rz-F1; Thu, 24 Jan 2013 17:22:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TyVCJ-0000Dq-2F; Thu, 24 Jan 2013 17:23:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 24 Jan 2013 22:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13541 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-cc-mode@gnu.org, Leo Liu , 13541@debbugs.gnu.org Original-Received: via spool by 13541-submit@debbugs.gnu.org id=B13541.1359066176829 (code B ref 13541); Thu, 24 Jan 2013 22:23:03 +0000 Original-Received: (at 13541) by debbugs.gnu.org; 24 Jan 2013 22:22:56 +0000 Original-Received: from localhost ([127.0.0.1]:48257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyVCC-0000DK-2q for submit@debbugs.gnu.org; Thu, 24 Jan 2013 17:22:56 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:64379 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyVCA-0000DC-0c for 13541@debbugs.gnu.org; Thu, 24 Jan 2013 17:22:55 -0500 Original-Received: (qmail 55570 invoked by uid 3782); 24 Jan 2013 22:22:46 -0000 Original-Received: from acm.muc.de (pD951BCFD.dip.t-dialin.net [217.81.188.253]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 24 Jan 2013 23:22:45 +0100 Original-Received: (qmail 27276 invoked by uid 1000); 24 Jan 2013 22:16:04 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70264 Archived-At: Hi, Glenn, On Thu, Jan 24, 2013 at 01:28:33PM -0500, Glenn Morris wrote: > Leo Liu wrote: > > In an awk buffer having the following text: > > #--BEGIN-- > > NF { /xyz/ } > > NF { > > /xyz/ > > } > > #--END-- > > I have the second regexp properly font-locked but not the first one. > Do you have an example of an actual useful awk script showing the issue, > because this one seems like a pointless no-op? This is a real bug, perhaps not a difficult one. "/regexp/" is an expression with value 1 iff the current input line matches the regexp. So a line like NF { print /xyz/ } is perfectly legitimate, printing 1 if there's an "xyz" on the line. I'm looking at this bug at the moment. -- Alan Mackenzie (Nuremberg, Germany).