diff options
author | hanemile <hanemile@protonmail.com> | 2018-11-08 13:31:03 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2018-11-08 13:31:03 +0100 |
commit | 7989206246c932559ad23e8729e849a8d3e35a22 (patch) | |
tree | 75a9d60dd68e4827e6383dc269372019d1a730c1 /listings-golang.sty | |
parent | 6705675117edb2b308de19c600c508482bbbf151 (diff) |
updated the current status
Diffstat (limited to 'listings-golang.sty')
-rw-r--r-- | listings-golang.sty | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/listings-golang.sty b/listings-golang.sty new file mode 100644 index 0000000..3ff31ad --- /dev/null +++ b/listings-golang.sty @@ -0,0 +1,23 @@ +%% Golang definition for listings +%% http://github.io/julienc91/lstlistings-golang +%% +\RequirePackage{listings} + +\lstdefinelanguage{Golang}% + {morekeywords=[1]{package,import,func,type,struct,return,defer,panic,% + recover,select,var,const,iota,},% + morekeywords=[2]{string,uint,uint8,uint16,uint32,uint64,int,int8,int16,% + int32,int64,bool,float32,float64,complex64,complex128,byte,rune,uintptr,% + error,interface},% + morekeywords=[3]{map,slice,make,new,nil,len,cap,copy,close,true,false,% + delete,append,real,imag,complex,chan,},% + morekeywords=[4]{for,break,continue,range,go,goto,switch,case,fallthrough,if,% + else,default,},% + morekeywords=[5]{Println,Printf,Error,Print,},% + sensitive=true,% + morecomment=[l]{//},% + morecomment=[s]{/*}{*/},% + morestring=[b]',% + morestring=[b]",% + morestring=[s]{`}{`},% + } |