From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: bad coloring in shell script mode Date: Tue, 17 Jun 2003 04:26:54 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87y9013h0x.fsf@jidanni.org> References: Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055807548 5817 80.91.224.249 (16 Jun 2003 23:52:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2003 23:52:28 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 01:52:27 2003 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 19S3lz-0001Vg-00 for ; Tue, 17 Jun 2003 01:52:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19S3nx-0005At-WB for gnu-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2003 19:54:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19S3nI-0004nQ-Jo for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2003 19:53:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19S3n4-0004Bq-B9 for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2003 19:53:36 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19S3mb-0003nn-NP for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2003 19:53:05 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19S3ju-0001OC-00 for ; Tue, 17 Jun 2003 01:50:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19S3i5-0001HV-00 for ; Tue, 17 Jun 2003 01:48:25 +0200 Original-Lines: 21 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) 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:5319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5319 Joe> This line Joe> grep "<<$SF>>" $HOME/.todo/$TODOLIST > $HOME/p Joe> causes everything after it to be in Sh Heredoc Face.... For me, the first line ruins everything after it too, so I had to add one space, spoiling my Spartan image. test "x$1" = x--help && { cat<<\EOF; exit;} test "x$1" = x--help && { cat<<\EOF ; exit;} By the way, are we sure the 'here document' should be specially colored? Often I do su proxy <<\EndofEverything for 90% of a script. OK, and if you're gonna same-color the whole script, then remember to make the $vars and `backquote commands` otherly colored, unless one has used <<\ and not <<. By the way, two wrongs make a right, so I can turn the different colors back on in that 90% with false && { cat<<\EOF; exit;} colors off here EOF su ${wwwoffle_user?} <<\EOeverything colors back on here, good. Indeed, one can even comment that su line and it still works.