Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vim syntax file for zsh
- X-seq: zsh-users 8279
- From: Felix Rosencrantz <f.rosencrantz@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Vim syntax file for zsh
- Date: Thu, 9 Dec 2004 08:36:30 -0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Z97zPibv5/ESJI70BYQQYzNZ8emCOFr/nHZA0EpxwB7vpTGa5aGk/juDJ3RIb16GhfDnZLr0m8njblKwEvz/KuoyFeXL4uu5PMftUoUPdCx54UD3h8JfxlMKQLcO2wwsdNCUdN3xlanFAM8mK5l4s8XpUWxXVyYKn6UTzDTxgrU=
- In-reply-to: <20041209144520.GC9424@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dc507f4a04113023401aeab8b2@xxxxxxxxxxxxxx> <20041201120202.GB9543@xxxxxxxxxxxxxxxxxx> <dc507f4a04120300022e3894cb@xxxxxxxxxxxxxx> <20041204164217.GA20437@xxxxxxxxxxxxxxxxxx> <dc507f4a04120800132b01f623@xxxxxxxxxxxxxx> <20041208134714.GB10098@xxxxxxxxxxxxxxxxxx> <20041208181429.GC10098@xxxxxxxxxxxxxxxxxx> <902B4263-49EA-11D9-A14D-000A95D2C79E@xxxxxxxxxxxxxxxx> <20041209144520.GC9424@xxxxxxxxxxxxxxxxxx>
- Reply-to: Felix Rosencrantz <f.rosencrantz@xxxxxxxxx>
Still looks good. :) A couple things:
1. When I first read your message, I sort of expected that it would
highlight the special variables differently, even if I used the "all"
setting. It doesn't do that, though that might be nice.
2. Strings: These snippets of code all color the same and probably
shouldn't, the embedded variable reference in double quotes should be
colored.
'SUSFU'
'SU$FU'
"SU$FU"
3. Backquotes: While `su$fu` does not highlight the string itself,
except for the variable reference.
4. Keyword Highlighting: Some unusualness with the local keyword and it's args:
In _files, I notice at the very start some odd coloring on the word
type, since it is a keyword. Though in this situation it is meant to
be a local variable name:
local type sdef
Also for keywords that seem to be arguments, same file the argument
"r:" stands out when it shouldn't:
zparseopts blah blah r: blah blah
This is more a problem with where keywords are found. Many keywords
should only be marked as keywords when they are in a command position.
Not sure if this is easy to do...
5. Assignments in Local: The assignment on the local line causes the
left side of the assignment to be colored, which causes "ret=0" to
standout in a distracting way, since the other variables are not
highlighted... In this case it seems like the other variables should
either be highlighted like lvalues or the "ret" should not be
highlighted....:
local sus fu foo ret=0 bar
-FR.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author