bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makefile mode comment color didn't notice backslash continuation


From: Paul D. Smith
Subject: Re: Makefile mode comment color didn't notice backslash continuation
Date: 03 Feb 2003 23:16:01 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

%% Dan Jacobson <address@hidden> writes:

  P> In short (too late...) the font-locking in makefile mode should
  P> ignore everything except make variables for colorization in a line
  P> that begins with a TAB (that's what make does, after all...)

  dj> I think you mean makefile mode need not bother itself with any detail
  dj> of lines beginning with tab, i.e. the only comment color in

  dj> $ cat Makefile
  dj> e=z #ppp
  dj> z:
  dj>   echo $e
  dj>   f=g date
  dj> would be #ppp

Nope.  In fact I meant exactly what I said.

Yes, the only comment color would be "#ppp", but makefile-mode also
colorizes make variable references.

In the above, the $e is interpreted by make and expanded to the value of
the make variable "e".  Since this value is interpreted by make, it
should be colorized as a make variable reference by makefile-mode.

If you'd written:

  e=z #ppp
  z:
        echo $$e
        f=g date

then I would agree with your statement.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]