1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-23 17:01:05 +02:00

29341, corrected: go programming language

This commit is contained in:
Peter Stephenson 2011-05-23 12:44:14 +00:00
parent 533f3c9d91
commit 67ce57d609
3 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-05-23 Peter Stephenson <pws@csr.com>
* 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 <mikachu@gmail.com>
* 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 $
*****************************************************

View file

@ -77,6 +77,7 @@ _global
_gnu_generic
_gnupod
_gnutls
_go
_gpg
_gphoto2
_gprof

View file

@ -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"