From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7102: 23.2; Makefile fontification incorrect Date: Fri, 01 Oct 2010 10:20:48 +0200 Message-ID: <83sk0qqq73.fsf@gnu.org> References: <868w2q2amq.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1285922628 21913 80.91.229.12 (1 Oct 2010 08:43:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 08:43:48 +0000 (UTC) Cc: cschol2112@googlemail.com, 7102-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 01 10:43:46 2010 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.69) (envelope-from ) id 1P1bDV-0008G5-GV for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 10:43:45 +0200 Original-Received: from localhost ([127.0.0.1]:41474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1bDU-0002jP-Tt for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 04:43:44 -0400 Original-Received: from [140.186.70.92] (port=42668 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1bBM-0001x0-HN for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 04:41:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1bBK-00034l-D2 for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 04:41:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1bBK-00034c-Ap for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 04:41:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1apa-0004El-Bm for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2010 04:19:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Oct 2010 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7102 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 7102@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 7102-done@debbugs.gnu.org id=D7102.128592108716272 (code D ref 7102); Fri, 01 Oct 2010 08:19:02 +0000 Original-Received: (at 7102-done) by debbugs.gnu.org; 1 Oct 2010 08:18:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1aog-0004EP-S3 for submit@debbugs.gnu.org; Fri, 01 Oct 2010 04:18:07 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1aoe-0004E3-BB for 7102-done@debbugs.gnu.org; Fri, 01 Oct 2010 04:18:05 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L9L00I00R42QV00@a-mtaout22.012.net.il> for 7102-done@debbugs.gnu.org; Fri, 01 Oct 2010 10:20:48 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.77.74]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L9L00IUMR6KHB50@a-mtaout22.012.net.il>; Fri, 01 Oct 2010 10:20:46 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 01 Oct 2010 04:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:40610 Archived-At: > From: Stefan Monnier > Date: Sun, 26 Sep 2010 22:17:18 +0200 > Cc: Christoph , 7102@debbugs.gnu.org > > >> Start Emacs with `emacs -Q'. > >> Open `gmake.defs' in `nt/' directory. > >>> From line 99 on the rest of the file is fontified mostly as comments. > >> Note: Removing 1 of the double quotes at the end of line 99 results in correct > >> fontification of the buffer. > > > I know nothing about this code, but since the comment in the line > > above says that it contains a deliberate syntax error, maybe > > makefile-mode can be forgiven for getting confused. > > The problem is that makefile-mode assumes all the Makefil content > follows the lexical rules of Make, whereas $(shell ...) does not follow > the Make lexical rules in "...", so (as in the present case) the "..." > may contain unmatched double quotes. I don't actually know how the end > of "..." is determined, tho I guess it's something like "the matching > close-paren" probably with the possibility to escape parens > with backslashes. I fixed it by adding a comment line with a quote right after the offending line (revno 101701).