summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/listings/lstlang3.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/listings/lstlang3.sty')
-rw-r--r--Master/texmf-dist/tex/latex/listings/lstlang3.sty42
1 files changed, 41 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/listings/lstlang3.sty b/Master/texmf-dist/tex/latex/listings/lstlang3.sty
index d4db105558a..2a8f4a21175 100644
--- a/Master/texmf-dist/tex/latex/listings/lstlang3.sty
+++ b/Master/texmf-dist/tex/latex/listings/lstlang3.sty
@@ -22,7 +22,7 @@
%% programming languages to Jobst Hoffmann at <j.hoffmann@fh-aachen.de>.
%%
\ProvidesFile{lstlang3.sty}
- [2015/06/04 1.6 listings language file]
+ [2018/09/02 1.7 listings language file]
\lst@definelanguage[68]{Algol}%
{morekeywords={abs,and,arg,begin,bin,bits,bool,by,bytes,case,channel,%
char,co,comment,compl,conj,divab,do,down,elem,elif,else,empty,%
@@ -330,6 +330,25 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},%
morestring=[b]",%
morestring=[b]'%
}[keywords,comments,strings]%
+%%
+%% Go definition
+%% (c) 2018 Christian Maurer
+%%
+\lst@definelanguage{Go}{%
+ morekeywords={append,bool,break,byte,cap,case,chan,close,complex,%
+ complex128,complex64,const,continue,copy,default,defer,delete,%
+ else,error,fallthrough,false,float32,float64,for,func,go,goto,%
+ if,imag,import,int,int16,int32,int64,int8,interface,iota,len,%
+ make,map,new,nil,package,panic,print,println,range,real,%
+ recover,return,rune,select,string,struct,switch,true,type,%
+ uint,uint16,uint32,uint64,uint8,uintptr,var},%
+ sensitive,%
+ morecomment=[s]{/*}{*/},%
+ morecomment=[l]//,%
+ morestring=[b]',%
+ morestring=[b]",%
+ morestring=[s]{`}{`},%
+}[keywords,comments,strings]%
\lst@definelanguage{Scala}%
{morekeywords={abstract,case,catch,class,def,%
do,else,extends,false,final,finally,%
@@ -1249,6 +1268,27 @@ literate=%
morestring=[d]',%
morestring=[d]"%
}[keywords,comments,strings]%
+\lst@definelanguage{Swift}{%
+ morekeywords={associatedtype,class,deinit,enum,extension,fileprivate,%
+ func,import,init,inout,internal,let,open,operator,private,protocol,%
+ public,static,struct,subscript,typealias,var,break,case,continue,%
+ default,defer,do,else,fallthrough,for,guard,if,in,repeat,return,%
+ switch,where,while,as,Any,catch,false,is,nil,rethrows,super,self,%
+ Self,throw,throws,true,try,_,associativity,convenience,dynamic,%
+ didSet,final,get,infix,indirect,lazy,left,mutating,none,%
+ nonmutating,optional,override,postfix,precedence,prefix,Protocol,%
+ required,right,set,Type,unowned,weak,willSet},%
+ sensitive,%
+ morecomment=[s]{/*}{*/},%
+ morecomment=[s]{/**}{*/},%
+ morecomment=[l]//,%
+ morecomment=[l]///,%
+ morestring=[b]",%
+ morestring=[b]""",%
+ moredelim=*[directive]\#,%
+ moredirectives={available,colorLiteral,column,else,elseif,endif,file,%
+ fileLiteral,function,if,imageLiteral,line,selector,sourceLocation}%
+ }[keywords,comments,strings,directives]%
\lst@definelanguage{S}[]{R}{}
\lst@definelanguage[PLUS]{S}[]{R}{}
\lst@definelanguage{R}%