Code

Add the presentation slides for the intro and gRPC talks.
[go-talk.git] / tex / lstlang0.sty
1 %% Listings definition for Go language
2 %% Go language reference : http://www.golang.org
3 %% Author : Uriel Corfa <uriel@corfa.fr>
4 %% Project home: https://bitbucket.org/korfuri/golang-latex-listings
6 \ProvidesFile{lstlang0.sty}
7              [2012/04/13 1.1 listings language file for GoLang]
8 \lst@definelanguage{Go}{
9   % Keywords as defined in the BNF
10   morekeywords=[1]{break,default,func,interface,%
11     case,defer,go,map,struct,chan,else,goto,package,%
12     switch,const,fallthrough,if,range,type,continue,%
13     for,import,return,var,select},
14   % Special identifiers, builtin functions
15   morekeywords=[2]{make,new,nil,len,cap,copy,complex,%
16     real,imag,panic,recover,print,println,iota,close,%
17     closed,_,true,false,append,delete},
18   % Basic types
19   morekeywords=[3]{%
20     string,int,uint,uintptr,double,float,byte,%
21     int8,int16,int32,int64,int128,%
22     uint8,uint16,uint32,uint64,uint128,%
23     float32,float64,complex64,complex128,%
24     rune},
25   % Strings : "toto", 'toto', `toto`
26   morestring=[b]{"},
27   morestring=[b]{'},
28   morestring=[b]{`},
29   % Comments : /* comment */ and // comment
30   comment=[l]{//},
31   morecomment=[s]{/*}{*/},
32   % Options
33   sensitive=true
34 }
35 \endinput