From 67ce57d609f23b08fce2fa6739943f98bb7877cf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 23 May 2011 12:44:14 +0000 Subject: 29341, corrected: go programming language --- ChangeLog | 8 +++++++- Completion/Unix/Command/.distfiles | 1 + Completion/Unix/Command/_go | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Completion/Unix/Command/_go diff --git a/ChangeLog b/ChangeLog index cec684077..f53ecfa11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-05-23 Peter Stephenson + + * 29341, corrected: Completion/Unix/Command/_go, + Completion/Unix/Command/.distfiles: basic completion for + commands associated with the Go programming language. + 2011-05-22 Mikael Magnusson * unposted: Doc/Zsh/compsys.yo, ChangeLog: Quote -e with tt(). @@ -14776,5 +14782,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5316 $ +* $Revision: 1.5317 $ ***************************************************** diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles index c254f6547..756ccec74 100644 --- a/Completion/Unix/Command/.distfiles +++ b/Completion/Unix/Command/.distfiles @@ -77,6 +77,7 @@ _global _gnu_generic _gnupod _gnutls +_go _gpg _gphoto2 _gprof diff --git a/Completion/Unix/Command/_go b/Completion/Unix/Command/_go new file mode 100644 index 000000000..c48cc51e4 --- /dev/null +++ b/Completion/Unix/Command/_go @@ -0,0 +1,18 @@ +#compdef gccgo gofmt 5l 6l 8l 5g 6g 8g + +# This is for the computer language go, +# http://glolang.org. + +local expl pat + +case $service in + (<->l) + pat="*.${service[1,-2]}" + ;; + + (*) + pat="*.go" + ;; +esac + +_wanted files expl "input file" _files -g "$pat" -- cgit v1.2.3