bdf4f5a347789069dda438e64467344b551fff00

Author
Spencer Rinehart <anubis@overthemonkey.com>
Committer
Spencer Rinehart <anubis@overthemonkey.com>
Date

Message

Allow ":" and "-" characters in phing tasks.

Tasks that included hyphens or colons were being excluded from
completion.  This improves the usage for this.

Diff

 1diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
 2index 1abf0a954645cea4e3e1156de337358439c89fcc..795f1db852874932e0331bb5bcb9e14ba59bdd50 100644
 3--- a/plugins/phing/phing.plugin.zsh
 4+++ b/plugins/phing/phing.plugin.zsh
 5@@ -7,7 +7,7 @@ _phing_does_target_list_need_generating () {
 6 _phing () {
 7   if [ -f build.xml ]; then
 8     if _phing_does_target_list_need_generating; then
 9-      phing -l |grep -v ":" |grep -v "^$"|grep -v "\-" > .phing_targets
10+      phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets
11     fi
12     compadd `cat .phing_targets`
13   fi