mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-11 20:31:11 +01:00
Incorporate Jean-Baptiste Quenot's change that improves the parsing
of the <target ...> tag.
This commit is contained in:
parent
cfb6ea8d2e
commit
5652f0e09c
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ case $state in
|
|||
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) )
|
||||
_wanted targets expl target compadd -a targets && ret=0
|
||||
else
|
||||
_message -e targets target
|
||||
|
|
Loading…
Reference in a new issue