Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vim syntax file for zsh
- X-seq: zsh-users 8260
- From: Felix Rosencrantz <f.rosencrantz@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Vim syntax file for zsh
- Date: Fri, 3 Dec 2004 00:02:21 -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=llopvk1MKGO4eGDhYha1SyKPa+vORhKTkYx4LXPi4gufgFId/hvArFVn0/zf/0xsb3YBXCEUbcpmAuGt2iTGKXnwEy4t/JYV+FtjtuVMROJa4LTSBl7E4pwZI7ydWkG803239RUBXkmvOK/ZgE82/Nuf+s/QH7nOmKA/KGVEL4U=
- In-reply-to: <20041201120202.GB9543@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dc507f4a04113023401aeab8b2@xxxxxxxxxxxxxx> <20041201120202.GB9543@xxxxxxxxxxxxxxxxxx>
- Reply-to: Felix Rosencrantz <f.rosencrantz@xxxxxxxxx>
I'm not a vim expert, I'm thinking there might be a better way to
allow me compare these syntax files side-by-side in the same process.
I had to do it in separate runs.
Viewing completion function files under the cvs tree (e.g.
Completion/Unix/Type/_files) It seems like both of these syntax files had some
problems with variable syntax. Though Nikolai's seems to behave
better. The one Danek sent marked some of the variables with red
(meaning syntax errors.) Neither knows about the new always keyword.
Though Nikolai's had problems with variables not listed in braces
(e.g. $#foo would only highlight the '$#'). It would only highlight
the first character.
I would like to see the syntax files be able to handle more of the
parameter expansion syntax and flags (like found in man zshexpn) .
It would be nice if it could color things like:
"${(@j:|:M)${(@)tmp#-}#?}" or show an error if it saw code like
"${(b)tmp} ('b' is not a valid flag). Also things like the first
line #compdef or #autoload lines are not marked or highlighted in any
way, other than as a comment.
My focus is on completion functions, since they provide a good body of
source that use the zsh syntax. Also, they contain quite a bit of
parameter syntax.
Both files seem better than the default one that comes with vim. Very nice.
-FR.
On Wed, 1 Dec 2004 13:02:02 +0100, Nikolai Weibull
> Yes, but it isn't great. You may definetely give enhancement tips,
> nikolai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author