diff options
| author | Wayne Davison <wayned@users.sourceforge.net> | 2004-08-24 20:52:23 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-08-24 20:52:23 +0000 |
| commit | 5652f0e09c7db989c2fc184bee3bc73645ecc9f9 (patch) | |
| tree | 8976f2d99c5b5e0324ed92eb12850ce44de4e69a /Completion/Unix/Command/_ant | |
| parent | 20282 (diff) | |
| download | zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.gz zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.bz2 zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.lz zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.xz zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.tar.zst zsh-5652f0e09c7db989c2fc184bee3bc73645ecc9f9.zip | |
Incorporate Jean-Baptiste Quenot's change that improves the parsing
of the <target ...> tag.
Diffstat (limited to 'Completion/Unix/Command/_ant')
| -rw-r--r-- | Completion/Unix/Command/_ant | 2 |
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 |
