From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7102: 23.2; Makefile fontification incorrect Date: Sun, 26 Sep 2010 22:17:18 +0200 Message-ID: References: <868w2q2amq.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285533684 22979 80.91.229.12 (26 Sep 2010 20:41:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2010 20:41:24 +0000 (UTC) Cc: Christoph , 7102@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 26 22:41:22 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 1Ozy2E-0001RL-8C for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Sep 2010 22:41:22 +0200 Original-Received: from localhost ([127.0.0.1]:34188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ozy2D-0006mt-B9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Sep 2010 16:41:21 -0400 Original-Received: from [140.186.70.92] (port=42066 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ozy26-0006mm-WF for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2010 16:41:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ozy25-0005zR-Rk for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2010 16:41:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48290) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ozy25-0005zN-QK for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2010 16:41:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ozxck-0006pL-Ej; Sun, 26 Sep 2010 16:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2010 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7102 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7102-submit@debbugs.gnu.org id=B7102.128553207526218 (code B ref 7102); Sun, 26 Sep 2010 20:15:02 +0000 Original-Received: (at 7102) by debbugs.gnu.org; 26 Sep 2010 20:14:35 +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 1OzxcI-0006op-TF for submit@debbugs.gnu.org; Sun, 26 Sep 2010 16:14:35 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzxcG-0006oj-Hb for 7102@debbugs.gnu.org; Sun, 26 Sep 2010 16:14:33 -0400 Original-Received: from dyn.144-85-185-002.dsl.vtx.ch ([144.85.185.2]:21625 helo=fmsmemgm.homelinux.net) by fencepost.gnu.org with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Ozxew-0003vL-12; Sun, 26 Sep 2010 16:17:18 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 051B16611D; Sun, 26 Sep 2010 22:17:19 +0200 (CEST) In-Reply-To: (Glenn Morris's message of "Sat, 25 Sep 2010 17:04:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 26 Sep 2010 16:15: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:40469 Archived-At: >> 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. Stefan