Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vim syntax file for zsh
- X-seq: zsh-users 8282
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Vim syntax file for zsh
- Date: Thu, 9 Dec 2004 12:09:41 -0800
- In-reply-to: <20041209182347.GG9424@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dc507f4a04120300022e3894cb@xxxxxxxxxxxxxx> <20041204164217.GA20437@xxxxxxxxxxxxxxxxxx> <dc507f4a04120800132b01f623@xxxxxxxxxxxxxx> <20041208134714.GB10098@xxxxxxxxxxxxxxxxxx> <20041208181429.GC10098@xxxxxxxxxxxxxxxxxx> <902B4263-49EA-11D9-A14D-000A95D2C79E@xxxxxxxxxxxxxxxx> <20041209144520.GC9424@xxxxxxxxxxxxxxxxxx> <dc507f4a04120908364a032da6@xxxxxxxxxxxxxx> <20041209181813.GF9424@xxxxxxxxxxxxxxxxxx> <20041209182347.GG9424@xxxxxxxxxxxxxxxxxx>
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..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author