Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Ant completion improvement
- X-seq: zsh-workers 20604
- From: Doug Kearns <dougkearns@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: [PATCH] Ant completion improvement
- Date: Mon, 6 Dec 2004 22:07:07 +1100
- Cc: Jean-Baptiste Quenot <jb.quenot@xxxxxxxxxxx>
- In-reply-to: <20041206104117.GB1617@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, Jean-Baptiste Quenot <jb.quenot@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20041206104117.GB1617@xxxxxxxxxxxxxx>
On Mon, Dec 06, 2004 at 11:41:19AM +0100, Jean-Baptiste Quenot wrote:
<snip>
> --- _ant.orig Mon Dec 6 11:22:13 2004
> +++ _ant Mon Dec 6 11:40:46 2004
> @@ -86,7 +86,7 @@
> buildfile=${(v)opt_args[(I)(-f|-file|-buildfile)]:-build.xml}
> fi
> if [[ -f $buildfile ]]; then
> - targets=( $(sed -n "s/ *<target name=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) )
> + targets=( $(sed -n "s/[ ]*<target *[^>]* name=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) )
You could use [:blank:] here ^^^^^^
> _wanted targets expl target compadd -a targets && ret=0
> else
> _message -e targets target
Regards,
Doug
Messages sorted by:
Reverse Date,
Date,
Thread,
Author