summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-08-24 20:52:23 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-08-24 20:52:23 +0000
commit5652f0e09c7db989c2fc184bee3bc73645ecc9f9 (patch)
tree8976f2d99c5b5e0324ed92eb12850ce44de4e69a
parentcfb6ea8d2e92c21323f10e0c4d3cb2caf069651f (diff)
downloadzsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.gz
zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.xz
zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.zip
Incorporate Jean-Baptiste Quenot's change that improves the parsing
of the <target ...> tag.
-rw-r--r--Completion/Unix/Command/_ant2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_ant b/Completion/Unix/Command/_ant
index f969ad859..73d193991 100644
--- a/Completion/Unix/Command/_ant
+++ b/Completion/Unix/Command/_ant
@@ -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