From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14764 invoked from network); 9 Dec 2004 20:10:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Dec 2004 20:10:39 -0000 Received: (qmail 90158 invoked from network); 9 Dec 2004 20:10:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Dec 2004 20:10:33 -0000 Received: (qmail 14761 invoked by alias); 9 Dec 2004 20:09:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8282 Received: (qmail 14751 invoked from network); 9 Dec 2004 20:09:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Dec 2004 20:09:43 -0000 Received: (qmail 88740 invoked from network); 9 Dec 2004 20:09:43 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO binome.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 9 Dec 2004 20:09:40 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id D134F399B; Thu, 9 Dec 2004 12:09:41 -0800 (PST) Date: Thu, 9 Dec 2004 12:09:41 -0800 From: Wayne Davison To: zsh-users@sunsite.dk Subject: Re: Vim syntax file for zsh Message-ID: <20041209200941.GA27510@blorf.net> References: <20041204164217.GA20437@puritan.pcp.ath.cx> <20041208134714.GB10098@puritan.pcp.ath.cx> <20041208181429.GC10098@puritan.pcp.ath.cx> <902B4263-49EA-11D9-A14D-000A95D2C79E@kalama.no-ip.org> <20041209144520.GC9424@puritan.pcp.ath.cx> <20041209181813.GF9424@puritan.pcp.ath.cx> <20041209182347.GG9424@puritan.pcp.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041209182347.GG9424@puritan.pcp.ath.cx> User-Agent: Mutt/1.5.6+20040907i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 I've been trying this out, and I have a few comments: First, a bug: The zshVariable rule (after the "How safe is this?" comment) is misfiring on any [ that follows word characters. For instance, add "echo hi[" early in a zsh script, and the entire script should become the Identifier color. I don't know enough vim-syntax to fix this, so I just added XXXXX to the beginning of the "start" spec on that line, and the problem went away for now. I noticed that | and > are colored in the Operator color, but ; and & are not. I'd prefer to see them all colored as operators. I like the sh/bash string idiom where the quotes are colored as operator characters instead of as string characters (since they delimit the string). I simply changed the 3 uses of matchgroup=zshString into matchgroup=Operator, and it now works the way I want it to. I don't like the highlighting of command-line options in the same color as a variable. I just removed all the zshSwitches stuff, making them the default text color. That's just my $.02. Thanks for working on this! ..wayne..