From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.bugs Subject: Re: Makefile mode comment color didn't notice backslash continuation Date: 13 Feb 2003 20:46:45 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87adh0m09m.fsf@oak.pohoyda.family> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045165559 27317 80.91.224.249 (13 Feb 2003 19:45:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 19:45:59 +0000 (UTC) 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 18jPIy-00076L-00 for ; Thu, 13 Feb 2003 20:45:57 +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 18jPK6-00035H-02 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 13 Feb 2003 14:47:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jPJw-0002vh-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 13 Feb 2003 14:46:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jPJr-0002i8-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 13 Feb 2003 14:46:52 -0500 Original-Received: from horus.isnic.is ([193.4.58.12]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jPJg-0002Jz-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 13 Feb 2003 14:46:40 -0500 Original-Received: from mail.fu-berlin.de (root@mail.fu-berlin.de [160.45.11.165]) by horus.isnic.is (8.12.3/8.12.3/isnic) with ESMTP id h1DJkdtJ039923 for ; Thu, 13 Feb 2003 19:46:39 GMT (envelope-from alexander.pohoyda@gmx.net) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 13 Feb 2003 20:46:38 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 13 Feb 2003 20:46:38 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: p508bd49e.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 22 X-Orig-NNTP-Posting-Host: p508bd49e.dip.t-dialin.net (80.139.212.158) X-Orig-X-Trace: fu-berlin.de 1045165598 46952610 80.139.212.158 (16 [146643]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4463 > In short (too late...) the font-locking in makefile mode should ignore > everything except make variables for colorization in a line that begins > with a TAB (that's what make does, after all...) OK, but what about a makefile like this: MYVAR = 1 # comment \ same comment continues According to info, GNU make treats the second line as a comment: * `#' in a line of a makefile starts a "comment". It and the rest of the line are ignored, except that a trailing backslash not escaped by another backslash will continue the comment across multiple lines. So it should be colored as a comment. -- Alexander Pohoyda