mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +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
@ -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 New Issue
Block a user