lstlang1.sty 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882
  1. %%
  2. %% This is file `lstlang1.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% lstdrvrs.dtx (with options: `lang1')
  8. %%
  9. %% (w)(c) 1996/1997/1998/1999/2000/2001/2002 Carsten Heinz and/or any
  10. %% other author listed elsewhere in this file.
  11. %%
  12. %% This file is distributed under the terms of the LaTeX Project Public
  13. %% License from CTAN archives in directory macros/latex/base/lppl.txt.
  14. %% Either version 1.0 or, at your option, any later version.
  15. %%
  16. %% This file is completely free and comes without any warranty.
  17. %%
  18. %% Send comments and ideas on the package, error reports and additional
  19. %% programming languages to <[email protected]>.
  20. %%
  21. \ProvidesFile{lstlang1}
  22. [2002/07/31 v1.0d listings language file]
  23. %%
  24. %% ACSL definition (c) 2000 by Andreas Matthias <[email protected]>
  25. %%
  26. \lst@definelanguage{ACSL}[90]{Fortran}%
  27. {morekeywords={algorithm,cinterval,constant,derivative,discrete,%
  28. dynamic,errtag,initial,interval,maxterval,minterval,%
  29. merror,xerror,nsteps,procedural,save,schedule,sort,%
  30. table,terminal,termt,variable},%
  31. sensitive=false,%
  32. morecomment=[l]!%
  33. }[keywords, comments]%
  34. %%
  35. %% Ada 95 definition (c) Torsten Neuer <[email protected]>
  36. %%
  37. \lst@definelanguage[95]{Ada}[83]{Ada}%
  38. {morekeywords={abstract,aliased,protected,requeue,tagged,until}}%
  39. \lst@definelanguage[83]{Ada}%
  40. {morekeywords={abort,abs,accept,access,all,and,array,at,begin,body,%
  41. case,constant,declare,delay,delta,digits,do,else,elsif,end,entry,%
  42. exception,exit,for,function,generic,goto,if,in,is,limited,loop,%
  43. mod,new,not,null,of,or,others,out,package,pragma,private,%
  44. procedure,raise,range,record,rem,renames,return,reverse,select,%
  45. separate,subtype,task,terminate,then,type,use,when,while,with,%
  46. xor},%
  47. sensitive=f,%
  48. morecomment=[l]--,%
  49. morestring=[m]",% percent not defined as stringizer so far
  50. morestring=[m]'%
  51. }[keywords,comments,strings]%
  52. %%
  53. %% Visual Basic definition (c) 2002 Robert Frank <[email protected]>
  54. %%
  55. \lst@definelanguage[Visual]{Basic}
  56. {morekeywords={Abs,Array,Asc,AscB,AscW,Atn,Avg,CBool,CByte,CCur,%
  57. CDate,CDbl,Cdec,Choose,Chr,ChrB,ChrW,CInt,CLng,Command,Cos,%
  58. Count,CreateObject,CSng,CStr,CurDir,CVar,CVDate,CVErr,Date,%
  59. DateAdd,DateDiff,DatePart,DateSerial,DateValue,Day,DDB,Dir,%
  60. DoEvents,Environ,EOF,Error,Exp,FileAttr,FileDateTime,FileLen,%
  61. Fix,Format,FreeFile,FV,GetAllStrings,GetAttr,%
  62. GetAutoServerSettings,GetObject,GetSetting,Hex,Hour,IIf,%
  63. IMEStatus,Input,InputB,InputBox,InStr,InstB,Int,Integer,IPmt,%
  64. IsArray,IsDate,IsEmpty,IsError,IsMissing,IsNull,IsNumeric,%
  65. IsObject,LBound,LCase,Left,LeftB,Len,LenB,LoadPicture,Loc,LOF,%
  66. Log,Ltrim,Max,Mid,MidB,Min,Minute,MIRR,Month,MsgBox,Now,NPer,%
  67. NPV,Oct,Partition,Pmt,PPmt,PV,QBColor,Rate,RGB,Right,RightB,Rnd,%
  68. Rtrim,Second,Seek,Sgn,Shell,Sin,SLN,Space,Spc,Sqr,StDev,StDevP,%
  69. Str,StrComp,StrConv,String,Switch,Sum,SYD,Tab,Tan,Time,Timer,%
  70. TimeSerial,TimeValue,Trim,TypeName,UBound,Ucase,Val,Var,VarP,%
  71. VarType,Weekday,Year},% functions
  72. morekeywords=[2]{Accept,Activate,Add,AddCustom,AddFile,AddFromFile,%
  73. AddFromTemplate,AddItem,AddNew,AddToAddInToolbar,%
  74. AddToolboxProgID,Append,AppendChunk,Arrange,Assert,AsyncRead,%
  75. BatchUpdate,BeginTrans,Bind,Cancel,CancelAsyncRead,CancelBatch,%
  76. CancelUpdate,CanPropertyChange,CaptureImage,CellText,CellValue,%
  77. Circle,Clear,ClearFields,ClearSel,ClearSelCols,Clone,Close,Cls,%
  78. ColContaining,ColumnSize,CommitTrans,CompactDatabase,Compose,%
  79. Connect,Copy,CopyQueryDef,CreateDatabase,CreateDragImage,%
  80. CreateEmbed,CreateField,CreateGroup,CreateIndex,CreateLink,%
  81. CreatePreparedStatement,CreatePropery,CreateQuery,%
  82. CreateQueryDef,CreateRelation,CreateTableDef,CreateUser,%
  83. CreateWorkspace,Customize,Delete,DeleteColumnLabels,%
  84. DeleteColumns,DeleteRowLabels,DeleteRows,DoVerb,Drag,Draw,Edit,%
  85. EditCopy,EditPaste,EndDoc,EnsureVisible,EstablishConnection,%
  86. Execute,ExtractIcon,Fetch,FetchVerbs,Files,FillCache,Find,%
  87. FindFirst,FindItem,FindLast,FindNext,FindPrevious,Forward,%
  88. GetBookmark,GetChunk,GetClipString,GetData,GetFirstVisible,%
  89. GetFormat,GetHeader,GetLineFromChar,GetNumTicks,GetRows,%
  90. GetSelectedPart,GetText,GetVisibleCount,GoBack,GoForward,Hide,%
  91. HitTest,HoldFields,Idle,InitializeLabels,InsertColumnLabels,%
  92. InsertColumns,InsertObjDlg,InsertRowLabels,InsertRows,Item,%
  93. KillDoc,Layout,Line,LinkExecute,LinkPoke,LinkRequest,LinkSend,%
  94. Listen,LoadFile,LoadResData,LoadResPicture,LoadResString,%
  95. LogEvent,MakeCompileFile,MakeReplica,MoreResults,Move,MoveData,%
  96. MoveFirst,MoveLast,MoveNext,MovePrevious,NavigateTo,NewPage,%
  97. NewPassword,NextRecordset,OLEDrag,OnAddinsUpdate,OnConnection,%
  98. OnDisconnection,OnStartupComplete,Open,OpenConnection,%
  99. OpenDatabase,OpenQueryDef,OpenRecordset,OpenResultset,OpenURL,%
  100. Overlay,PaintPicture,Paste,PastSpecialDlg,PeekData,Play,Point,%
  101. PopulatePartial,PopupMenu,Print,PrintForm,PropertyChanged,Pset,%
  102. Quit,Raise,RandomDataFill,RandomFillColumns,RandomFillRows,%
  103. rdoCreateEnvironment,rdoRegisterDataSource,ReadFromFile,%
  104. ReadProperty,Rebind,ReFill,Refresh,RefreshLink,RegisterDatabase,%
  105. Reload,Remove,RemoveAddInFromToolbar,RemoveItem,Render,%
  106. RepairDatabase,Reply,ReplyAll,Requery,ResetCustom,%
  107. ResetCustomLabel,ResolveName,RestoreToolbar,Resync,Rollback,%
  108. RollbackTrans,RowBookmark,RowContaining,RowTop,Save,SaveAs,%
  109. SaveFile,SaveToFile,SaveToolbar,SaveToOle1File,Scale,ScaleX,%
  110. ScaleY,Scroll,Select,SelectAll,SelectPart,SelPrint,Send,%
  111. SendData,Set,SetAutoServerSettings,SetData,SetFocus,SetOption,%
  112. SetSize,SetText,SetViewport,Show,ShowColor,ShowFont,ShowHelp,%
  113. ShowOpen,ShowPrinter,ShowSave,ShowWhatsThis,SignOff,SignOn,Size,%
  114. Span,SplitContaining,StartLabelEdit,StartLogging,Stop,%
  115. Synchronize,TextHeight,TextWidth,ToDefaults,TwipsToChartPart,%
  116. TypeByChartType,Update,UpdateControls,UpdateRecord,UpdateRow,%
  117. Upto,WhatsThisMode,WriteProperty,ZOrder},% methods
  118. morekeywords=[3]{AccessKeyPress,AfterAddFile,AfterChangeFileName,%
  119. AfterCloseFile,AfterColEdit,AfterColUpdate,AfterDelete,%
  120. AfterInsert,AfterLabelEdit,AfterRemoveFile,AfterUpdate,%
  121. AfterWriteFile,AmbienChanged,ApplyChanges,Associate,%
  122. AsyncReadComplete,AxisActivated,AxisLabelActivated,%
  123. AxisLabelSelected,AxisLabelUpdated,AxisSelected,%
  124. AxisTitleActivated,AxisTitleSelected,AxisTitleUpdated,%
  125. AxisUpdated,BeforeClick,BeforeColEdit,BeforeColUpdate,%
  126. BeforeConnect,BeforeDelete,BeforeInsert,BeforeLabelEdit,%
  127. BeforeLoadFile,BeforeUpdate,ButtonClick,ButtonCompleted,%
  128. ButtonGotFocus,ButtonLostFocus,Change,ChartActivated,%
  129. ChartSelected,ChartUpdated,Click,ColEdit,Collapse,ColResize,%
  130. ColumnClick,Compare,ConfigChageCancelled,ConfigChanged,%
  131. ConnectionRequest,DataArrival,DataChanged,DataUpdated,DblClick,%
  132. Deactivate,DeviceArrival,DeviceOtherEvent,DeviceQueryRemove,%
  133. DeviceQueryRemoveFailed,DeviceRemoveComplete,DeviceRemovePending,%
  134. DevModeChange,Disconnect,DisplayChanged,Dissociate,%
  135. DoGetNewFileName,Done,DonePainting,DownClick,DragDrop,DragOver,%
  136. DropDown,EditProperty,EnterCell,EnterFocus,Event,ExitFocus,%
  137. Expand,FootnoteActivated,FootnoteSelected,FootnoteUpdated,%
  138. GotFocus,HeadClick,InfoMessage,Initialize,IniProperties,%
  139. ItemActivated,ItemAdded,ItemCheck,ItemClick,ItemReloaded,%
  140. ItemRemoved,ItemRenamed,ItemSeletected,KeyDown,KeyPress,KeyUp,%
  141. LeaveCell,LegendActivated,LegendSelected,LegendUpdated,%
  142. LinkClose,LinkError,LinkNotify,LinkOpen,Load,LostFocus,%
  143. MouseDown,MouseMove,MouseUp,NodeClick,ObjectMove,%
  144. OLECompleteDrag,OLEDragDrop,OLEDragOver,OLEGiveFeedback,%
  145. OLESetData,OLEStartDrag,OnAddNew,OnComm,Paint,PanelClick,%
  146. PanelDblClick,PathChange,PatternChange,PlotActivated,%
  147. PlotSelected,PlotUpdated,PointActivated,PointLabelActivated,%
  148. PointLabelSelected,PointLabelUpdated,PointSelected,%
  149. PointUpdated,PowerQuerySuspend,PowerResume,PowerStatusChanged,%
  150. PowerSuspend,QueryChangeConfig,QueryComplete,QueryCompleted,%
  151. QueryTimeout,QueryUnload,ReadProperties,Reposition,%
  152. RequestChangeFileName,RequestWriteFile,Resize,ResultsChanged,%
  153. RowColChange,RowCurrencyChange,RowResize,RowStatusChanged,%
  154. SelChange,SelectionChanged,SendComplete,SendProgress,%
  155. SeriesActivated,SeriesSelected,SeriesUpdated,SettingChanged,%
  156. SplitChange,StateChanged,StatusUpdate,SysColorsChanged,%
  157. Terminate,TimeChanged,TitleActivated,TitleSelected,%
  158. TitleActivated,UnboundAddData,UnboundDeleteRow,%
  159. UnboundGetRelativeBookmark,UnboundReadData,UnboundWriteData,%
  160. Unload,UpClick,Updated,Validate,ValidationError,WillAssociate,%
  161. WillChangeData,WillDissociate,WillExecute,WillUpdateRows,%
  162. WithEvents,WriteProperties},% VB-events
  163. morekeywords=[4]{AppActivate,Base,Beep,Call,Case,ChDir,ChDrive,%
  164. Const,Declare,DefBool,DefByte,DefCur,DefDate,DefDbl,DefDec,%
  165. DefInt,DefLng,DefObj,DefSng,DefStr,Deftype,DefVar,DeleteSetting,%
  166. Dim,Do,Else,ElseIf,End,Enum,Erase,Event,Exit,Explicit,FileCopy,%
  167. For,ForEach,Friend,Function,Get,GoSub,GoTo,If,Implements,Kill,%
  168. Let,LineInput,Lock,Lset,MkDir,Name,Next,OnError,On,Option,%
  169. Private,Property,Public,Put,RaiseEvent,Randomize,ReDim,Rem,%
  170. Reset,Resume,Return,RmDir,Rset,SavePicture,SaveSetting,%
  171. SendKeys,SetAttr,Static,Sub,Then,Type,Unlock,Wend,While,Width,%
  172. With,Write},% statements
  173. sensitive=false,
  174. keywordcomment=rem,%
  175. MoreSelectCharTable=\def\lst@BeginKC@{% chmod
  176. \lst@ResetToken
  177. \lst@BeginComment\lst@GPmode{{\lst@commentstyle}%
  178. \lst@Lmodetrue\lst@modetrue}\@empty}%
  179. morecomment=[l]{'},
  180. morecomment=[s]{/*}{*/},
  181. morestring=[b]",
  182. }[keywords,comments,strings,keywordcomments]
  183. \lst@definelanguage[ANSI]{C++}[ISO]{C++}{}%
  184. \lst@definelanguage[GNU]{C++}[ISO]{C++}%
  185. {morekeywords={__attribute__,__extension__,__restrict,__restrict__,%
  186. typeof,__typeof__},%
  187. }%
  188. \lst@definelanguage[Visual]{C++}[ISO]{C++}%
  189. {morekeywords={__asm,__based,__cdecl,__declspec,dllexport,%
  190. dllimport,__except,__fastcall,__finally,__inline,__int8,__int16,%
  191. __int32,__int64,naked,__stdcall,thread,__try,__leave},%
  192. }%
  193. \lst@definelanguage[ISO]{C++}[ANSI]{C}%
  194. {morekeywords={and,and_eq,asm,bad_cast,bad_typeid,bitand,bitor,bool,%
  195. catch,class,compl,const_cast,delete,dynamic_cast,explicit,export,%
  196. false,friend,inline,mutable,namespace,new,not,not_eq,operator,or,%
  197. or_eq,private,protected,public,reinterpret_cast,static_cast,%
  198. template,this,throw,true,try,typeid,type_info,typename,using,%
  199. virtual,wchar_t,xor,xor_eq},%
  200. }%
  201. %%
  202. %% Objective-C definition (c) 1997 Detlev Droege
  203. %% <[email protected]>
  204. %%
  205. \lst@definelanguage[Objective]{C}[ANSI]{C}
  206. {morekeywords={bycopy,id,in,inout,oneway,out,self,super,%
  207. @class,@defs,@encode,@end,@implementation,@interface,@private,%
  208. @protected,@protocol,@public,@selector},%
  209. moredirectives={import}%
  210. }%
  211. \lst@definelanguage[ANSI]{C}%
  212. {morekeywords={auto,break,case,char,const,continue,default,do,double,%
  213. else,enum,extern,float,for,goto,if,int,long,register,return,%
  214. short,signed,sizeof,static,struct,switch,typedef,union,unsigned,%
  215. void,volatile,while},%
  216. sensitive,%
  217. morecomment=[s]{/*}{*/},%
  218. morecomment=[l]//,% nonstandard
  219. morestring=[b]",%
  220. morestring=[b]',%
  221. moredirectives={define,elif,else,endif,error,if,ifdef,ifndef,line,%
  222. include,pragma,undef,warning}%
  223. }[keywords,comments,strings,directives]%
  224. %%
  225. %% C-Sharp definition (c) 2002 Martin Brodbeck <[email protected]>
  226. %%
  227. \lst@definelanguage[Sharp]{C}%
  228. {morekeywords={abstract,base,bool,break,byte,case,catch,char,checked,%
  229. class,const,continue,decimal,default,delegate,do,double,else,%
  230. enum,event,explicit,extern,false,finally,fixed,float,for,foreach,%
  231. goto,if,implicit,in,int,interface,internal,is,lock,long,%
  232. namespace,new,null,object,operator,out,override,params,private,%
  233. protected,public,readonly,ref,return,sbyte,sealed,short,sizeof,%
  234. static,string,struct,switch,this,throw,true,try,typeof,uint,%
  235. ulong,unchecked,unsafe,ushort,using,virtual,void,while},%
  236. sensitive,%
  237. morecomment=[s]{/*}{*/},%
  238. morecomment=[l]//,%
  239. morestring=[b]"
  240. }[keywords,comments,strings]%
  241. %%
  242. %% csh definition (c) 1998 Kai Below <[email protected]>
  243. %%
  244. \lst@definelanguage{csh}
  245. {morekeywords={alias,awk,cat,echo,else,end,endif,endsw,exec,exit,%
  246. foreach,glob,goto,history,if,logout,nice,nohup,onintr,repeat,sed,%
  247. set,setenv,shift,source,switch,then,time,while,umask,unalias,%
  248. unset,wait,while,@,env,argv,child,home,ignoreeof,noclobber,%
  249. noglob,nomatch,path,prompt,shell,status,verbose,print,printf,%
  250. sqrt,BEGIN,END},%
  251. morecomment=[l]\#,%
  252. morestring=[d]"%
  253. }[keywords,comments,strings]%
  254. \lst@definelanguage[90]{Fortran}[95]{Fortran}{}
  255. \lst@definelanguage[95]{Fortran}[77]{Fortran}%
  256. {deletekeywords=SAVE,%
  257. morekeywords={ACTION,ADVANCE,ALLOCATE,ALLOCATABLE,ASSIGNMENT,CASE,%
  258. CONTAINS,CYCLE,DEALLOCATE,DEFAULT,DELIM,EXIT,INCLUDE,IN,NONE,IN,%
  259. OUT,INTENT,INTERFACE,IOLENGTH,KIND,LEN,MODULE,NAME,NAMELIST,NMT,%
  260. NULLIFY,ONLY,OPERATOR,OPTIONAL,OUT,PAD,POINTER,POSITION,PRIVATE,%
  261. PUBLIC,READWRITE,RECURSIVE,RESULT,SELECT,SEQUENCE,SIZE,STAT,%
  262. TARGET,USE,WHERE,WHILE,BLOCKDATA,DOUBLEPRECISION,ELSEIF,%
  263. ENDBLOCKDATA,ENDDO,ENDFILE,ENDFUNCTION,ENDIF,ENDINTERFACE,%
  264. ENDMODULE,ENDPROGRAM,ENDSELECT,ENDSUBROUTINE,ENDTYPE,ENDWHERE,%
  265. GOTO,INOUT,SELECTCASE},%
  266. deletecomment=[f],% no fixed comment line: 1998 Magne Rudshaug
  267. morecomment=[l]!%
  268. }%
  269. \lst@definelanguage[77]{Fortran}%
  270. {morekeywords={ACCESS,ASSIGN,BACKSPACE,BLANK,BLOCK,CALL,CHARACTER,%
  271. CLOSE,COMMON,COMPLEX,CONTINUE,DATA,DIMENSION,DIRECT,DO,DOUBLE,%
  272. ELSE,END,ENTRY,EOF,EQUIVALENCE,ERR,EXIST,EXTERNAL,FILE,FMT,FORM,%
  273. FORMAT,FORMATTED,FUNCTION,GO,TO,IF,IMPLICIT,INQUIRE,INTEGER,%
  274. INTRINSIC,IOSTAT,LOGICAL,NAMED,NEXTREC,NUMBER,OPEN,OPENED,%
  275. PARAMETER,PAUSE,PRECISION,PRINT,PROGRAM,READ,REAL,REC,RECL,%
  276. RETURN,REWIND,SEQUENTIAL,STATUS,STOP,SUBROUTINE,THEN,TYPE,%
  277. UNFORMATTED,UNIT,WRITE,SAVE},%
  278. sensitive=f,%% not Fortran standard %%
  279. morecomment=[f]*,%
  280. morecomment=[f]C,%
  281. morecomment=[f]c,%
  282. morestring=[d]"%
  283. }[keywords,comments,strings]%
  284. \lst@definelanguage{HTML}%
  285. {morekeywords={A,ADDRESS,APPLET,B,BASE,BASEFONT,BIG,BLOCKQUOTE,BODY,%
  286. BR,CENTER,CITE,CODE,DFN,DIR,DIV,DOCTYPE,EM,FONT,FORM,HEAD,HR,%
  287. H1,H2,H3,H4,H5,H6,HTML,I,IMG,INPUT,ISINDEX,KBD,LI,LINK,LISTING,%
  288. MAP,META,MENU,P,PLAINTEXT,PRE,OL,SAMP,SCRIPT,SELECT,SMALL,STRIKE,%
  289. STRING,SUB,SUP,STYLE,TABLE,TEXTAREA,TITLE,TT,U,UL,VAR,XMP,%
  290. action,align,alink,alt,background,bgcolor,border,cellpadding,%
  291. cellspacing,checked,code,codebase,color,cols,colspan,entype,%
  292. height,href,hspace,ismap,link,maxlength,method,multiple,name,%
  293. noshade,nowrap,rel,rev,rows,rowspan,selected,shape,size,src,text,%
  294. title,type,usemap,valign,value,vlink,vspace,width},%
  295. keywordsinside=<>,
  296. sensitive=f,%
  297. morestring=[d]",% ??? doubled
  298. MoreSelectCharTable=%
  299. \lst@CArgX--\relax\lst@DefDelimB{}{}%
  300. {\ifnum\lst@mode=\lst@insidemode\else
  301. \expandafter\@gobblethree
  302. \fi}%
  303. \lst@BeginComment\lst@commentmode{{\lst@commentstyle}}%
  304. \lst@CArgX--\relax\lst@DefDelimE{}{}{}%
  305. \lst@EndComment\lst@commentmode
  306. }[keywords,comments,strings,html]%
  307. \lst@definelanguage{Java}%
  308. {morekeywords={abstract,boolean,break,byte,case,catch,char,class,%
  309. const,continue,default,do,double,else,extends,false,final,%
  310. finally,float,for,goto,if,implements,import,instanceof,int,%
  311. interface,label,long,native,new,null,package,private,protected,%
  312. public,return,short,static,super,switch,synchronized,this,throw,%
  313. throws,transient,true,try,void,volatile,while},%
  314. sensitive,%
  315. morecomment=[l]//,%
  316. morecomment=[s]{/*}{*/},%
  317. morestring=[b]",%
  318. morestring=[b]',%
  319. }[keywords,comments,strings]%
  320. \lst@definelanguage{Matlab}%
  321. {morekeywords={gt,lt,gt,lt,amp,abs,acos,acosh,acot,acoth,acsc,acsch,%
  322. all,angle,ans,any,asec,asech,asin,asinh,atan,atan2,atanh,auread,%
  323. auwrite,axes,axis,balance,bar,bessel,besselk,bessely,beta,%
  324. betainc,betaln,blanks,bone,break,brighten,capture,cart2pol,%
  325. cart2sph,caxis,cd,cdf2rdf,cedit,ceil,chol,cla,clabel,clc,clear,%
  326. clf,clock,close,colmmd,Colon,colorbar,colormap,ColorSpec,colperm,%
  327. comet,comet3,compan,compass,computer,cond,condest,conj,contour,%
  328. contour3,contourc,contrast,conv,conv2,cool,copper,corrcoef,cos,%
  329. cosh,cot,coth,cov,cplxpair,cputime,cross,csc,csch,csvread,%
  330. csvwrite,cumprod,cumsum,cylinder,date,dbclear,dbcont,dbdown,%
  331. dbquit,dbstack,dbstatus,dbstep,dbstop,dbtype,dbup,ddeadv,ddeexec,%
  332. ddeinit,ddepoke,ddereq,ddeterm,ddeunadv,deblank,dec2hex,deconv,%
  333. del2,delete,demo,det,diag,diary,diff,diffuse,dir,disp,dlmread,%
  334. dlmwrite,dmperm,dot,drawnow,echo,eig,ellipj,ellipke,else,elseif,%
  335. end,engClose,engEvalString,engGetFull,engGetMatrix,engOpen,%
  336. engOutputBuffer,engPutFull,engPutMatrix,engSetEvalCallback,%
  337. engSetEvalTimeout,engWinInit,eps,erf,erfc,erfcx,erfinv,error,%
  338. errorbar,etime,etree,eval,exist,exp,expint,expm,expo,eye,fclose,%
  339. feather,feof,ferror,feval,fft,fft2,fftshift,fgetl,fgets,figure,%
  340. fill,fill3,filter,filter2,find,findstr,finite,fix,flag,fliplr,%
  341. flipud,floor,flops,fmin,fmins,fopen,for,format,fplot,fprintf,%
  342. fread,frewind,fscanf,fseek,ftell,full,function,funm,fwrite,fzero,%
  343. gallery,gamma,gammainc,gammaln,gca,gcd,gcf,gco,get,getenv,%
  344. getframe,ginput,global,gplot,gradient,gray,graymon,grid,griddata,%
  345. gtext,hadamard,hankel,help,hess,hex2dec,hex2num,hidden,hilb,hist,%
  346. hold,home,hostid,hot,hsv,hsv2rgb,if,ifft,ifft2,imag,image,%
  347. imagesc,Inf,info,input,int2str,interp1,interp2,interpft,inv,%
  348. invhilb,isempty,isglobal,ishold,isieee,isinf,isletter,isnan,%
  349. isreal,isspace,issparse,isstr,jet,keyboard,kron,lasterr,lcm,%
  350. legend,legendre,length,lin2mu,line,linspace,load,log,log10,log2,%
  351. loglog,logm,logspace,lookfor,lower,ls,lscov,lu,magic,matClose,%
  352. matDeleteMatrix,matGetDir,matGetFp,matGetFull,matGetMatrix,%
  353. matGetNextMatrix,matGetString,matlabrc,matlabroot,matOpen,%
  354. matPutFull,matPutMatrix,matPutString,max,mean,median,menu,mesh,%
  355. meshc,meshgrid,meshz,mexAtExit,mexCallMATLAB,mexdebug,%
  356. mexErrMsgTxt,mexEvalString,mexFunction,mexGetFull,mexGetMatrix,%
  357. mexGetMatrixPtr,mexPrintf,mexPutFull,mexPutMatrix,mexSetTrapFlag,%
  358. min,more,movie,moviein,mu2lin,mxCalloc,mxCopyCharacterToPtr,%
  359. mxCopyComplex16ToPtr,mxCopyInteger4ToPtr,mxCopyPtrToCharacter,%
  360. mxCopyPtrToComplex16,mxCopyPtrToInteger4,mxCopyPtrToReal8,%
  361. mxCopyReal8ToPtr,mxCreateFull,mxCreateSparse,mxCreateString,%
  362. mxFree,mxFreeMatrix,mxGetIr,mxGetJc,mxGetM,mxGetN,mxGetName,%
  363. mxGetNzmax,mxGetPi,mxGetPr,mxGetScalar,mxGetString,mxIsComplex,%
  364. mxIsFull,mxIsNumeric,mxIsSparse,mxIsString,mxIsTypeDouble,%
  365. mxSetIr,mxSetJc,mxSetM,mxSetN,mxSetName,mxSetNzmax,mxSetPi,%
  366. mxSetPr,NaN,nargchk,nargin,nargout,newplot,nextpow2,nnls,nnz,%
  367. nonzeros,norm,normest,null,num2str,nzmax,ode23,ode45,orient,orth,%
  368. pack,pascal,patch,path,pause,pcolor,pi,pink,pinv,plot,plot3,%
  369. pol2cart,polar,poly,polyder,polyeig,polyfit,polyval,polyvalm,%
  370. pow2,print,printopt,prism,prod,pwd,qr,qrdelete,qrinsert,quad,%
  371. quad8,quit,quiver,qz,rand,randn,randperm,rank,rat,rats,rbbox,%
  372. rcond,real,realmax,realmin,refresh,rem,reset,reshape,residue,%
  373. return,rgb2hsv,rgbplot,rootobject,roots,rose,rosser,rot90,rotate,%
  374. round,rref,rrefmovie,rsf2csf,save,saxis,schur,sec,sech,semilogx,%
  375. semilogy,set,setstr,shading,sign,sin,sinh,size,slice,sort,sound,%
  376. spalloc,sparse,spaugment,spconvert,spdiags,specular,speye,spfun,%
  377. sph2cart,sphere,spinmap,spline,spones,spparms,sprandn,sprandsym,%
  378. sprank,sprintf,spy,sqrt,sqrtm,sscanf,stairs,startup,std,stem,%
  379. str2mat,str2num,strcmp,strings,strrep,strtok,subplot,subscribe,%
  380. subspace,sum,surf,surface,surfc,surfl,surfnorm,svd,symbfact,%
  381. symmmd,symrcm,tan,tanh,tempdir,tempname,terminal,text,tic,title,%
  382. toc,toeplitz,trace,trapz,tril,triu,type,uicontrol,uigetfile,%
  383. uimenu,uiputfile,unix,unwrap,upper,vander,ver,version,view,%
  384. viewmtx,waitforbuttonpress,waterfall,wavread,wavwrite,what,%
  385. whatsnew,which,while,white,whitebg,who,whos,wilkinson,wk1read,%
  386. wk1write,xlabel,xor,ylabel,zeros,zlabel,zoom},%
  387. sensitive,%
  388. morecomment=[l]\%,%
  389. morestring=[m]'%
  390. }[keywords,comments,strings]%
  391. %%
  392. %% Mathematica definitions (c) 1999 Michael Wiese <[email protected]>
  393. %%
  394. \lst@definelanguage[3.0]{Mathematica}[1.0]{Mathematica}%
  395. {morekeywords={Abort,AbortProtect,AbsoluteDashing,AbsolutePointSize,%
  396. AbsoluteThickness,AbsoluteTime,AccountingFormAiry,AiPrime,AiryBi,%
  397. AiryBiPrime,Alternatives,AnchoredSearch,AxesEdge,AxesOrigin,%
  398. AxesStyle,Background,BetaRegularized,BoxStyle,C,CheckAbort,%
  399. Circle,ClebschGordan,CMYKColor,ColorFunction,ColorOutput,Compile,%
  400. Compiled,CompiledFunction,ComplexExpand,ComposeList,Composition,%
  401. ConstrainedMax,ConstrainedMin,Contexts,ContextToFilename,%
  402. ContourLines,Contours,ContourShading,ContourSmoothing,%
  403. ContourStyle,CopyDirectory,CopyFile,CosIntegral,CreateDirectory,%
  404. Cuboid,Date,DeclarePackage,DefaultColor,DefaultFont,Delete,%
  405. DeleteCases,DeleteDirectory,DeleteFile,Dialog,DialogIndent,%
  406. DialogProlog,DialogSymbols,DigitQ,Directory,DirectoryStack,Disk,%
  407. Dispatch,DownValues,DSolve,Encode,Epilog,Erfc,Evaluate,%
  408. ExponentFunction,FaceGrids,FileByteCount,FileDate,FileNames,%
  409. FileType,Find,FindList,FixedPointList,FlattenAt,Fold,FoldList,%
  410. Frame,FrameLabel,FrameStyle,FrameTicks,FromCharacterCode,%
  411. FromDate,FullGraphics,FullOptions,GammaRegularized,%
  412. GaussianIntegers,GraphicsArray,GraphicsSpacing,GridLines,%
  413. GroebnerBasis,Heads,HeldPart,HomeDirectory,Hue,IgnoreCases,%
  414. InputStream,Install,InString,IntegerDigits,InterpolatingFunction,%
  415. InterpolatingPolynomial,Interpolation,Interrupt,InverseFunction,%
  416. InverseFunctions,JacobiZeta,LetterQ,LinearProgramming,ListPlay,%
  417. LogGamma,LowerCaseQ,MachineNumberQ,MantissaExponent,MapIndexed,%
  418. MapThread,MatchLocalNames,MatrixExp,MatrixPower,MeshRange,%
  419. MeshStyle,MessageList,Module,NDSolve,NSolve,NullRecords,%
  420. NullWords,NumberFormat,NumberPadding,NumberSigns,OutputStream,%
  421. PaddedForm,ParentDirectory,Pause,Play,PlayRange,PlotRegion,%
  422. PolygonIntersections,PolynomialGCD,PolynomialLCM,PolynomialMod,%
  423. PostScript,PowerExpand,PrecisionGoal,PrimePi,Prolog,%
  424. QRDecomposition,Raster,RasterArray,RealDigits,Record,RecordLists,%
  425. RecordSeparators,ReleaseHold,RenameDirectory,RenameFile,%
  426. ReplaceHeldPart,ReplacePart,ResetDirectory,Residue,%
  427. RiemannSiegelTheta,RiemannSiegelZ,RotateLabel,SameTest,%
  428. SampleDepth,SampledSoundFunction,SampledSoundList,SampleRate,%
  429. SchurDecomposition,SessionTime,SetAccuracy,SetDirectory,%
  430. SetFileDate,SetPrecision,SetStreamPosition,Shallow,SignPadding,%
  431. SinIntegral,SixJSymbol,Skip,Sound,SpellingCorrection,%
  432. SphericalRegion,Stack,StackBegin,StackComplete,StackInhibit,%
  433. StreamPosition,Streams,StringByteCount,StringConversion,%
  434. StringDrop,StringInsert,StringPosition,StringReplace,%
  435. StringReverse,StringTake,StringToStream,SurfaceColor,%
  436. SyntaxLength,SyntaxQ,TableAlignments,TableDepth,%
  437. TableDirections,TableHeadings,TableSpacing,ThreeJSymbol,TimeUsed,%
  438. TimeZone,ToCharacterCode,ToDate,ToHeldExpression,TokenWords,%
  439. ToLowerCase,ToUpperCase,Trace,TraceAbove,TraceBackward,%
  440. TraceDepth,TraceDialog,TraceForward,TraceOff,TraceOn,%
  441. TraceOriginal,TracePrint,TraceScan,Trig,Unevaluated,Uninstall,%
  442. UnsameQ,UpperCaseQ,UpValues,ViewCenter,ViewVertical,With,Word,%
  443. WordSearch,WordSeparators},%
  444. morendkeywords={Stub,Temporary,$Aborted,$BatchInput,$BatchOutput,%
  445. $CreationDate,$DefaultFont,$DumpDates,$DumpSupported,$Failed,%
  446. $Input,$Inspector,$IterationLimit,$Language,$Letters,$Linked,%
  447. $LinkSupported,$MachineEpsilon,$MachineID,$MachineName,%
  448. $MachinePrecision,$MachineType,$MaxMachineNumber,$MessageList,%
  449. $MessagePrePrint,$MinMachineNumber,$ModuleNumber,$NewMessage,%
  450. $NewSymbol,$Notebooks,$OperatingSystem,$Packages,$PipeSupported,%
  451. $PreRead,$ReleaseNumber,$SessionID,$SoundDisplayFunction,%
  452. $StringConversion,$StringOrder,$SyntaxHandler,$TimeUnit,%
  453. $VersionNumber}%
  454. }%
  455. \lst@definelanguage[1.0]{Mathematica}%
  456. {morekeywords={Abs,Accuracy,AccurayGoal,AddTo,AiryAi,AlgebraicRules,%
  457. AmbientLight,And,Apart,Append,AppendTo,Apply,ArcCos,ArcCosh,%
  458. ArcCot,ArcCoth,ArcCsc,ArcCsch,ArcSec,ArcSech,ArcSin,ArcSinh,%
  459. ArcTan,ArcTanh,Arg,ArithmeticGeometricMean,Array,AspectRatio,%
  460. AtomQ,Attributes,Axes,AxesLabel,BaseForm,Begin,BeginPackage,%
  461. BernoulliB,BesselI,BesselJ,BesselK,BesselY,Beta,Binomial,Blank,%
  462. BlankNullSequence,BlankSequence,Block,Boxed,BoxRatios,Break,Byte,%
  463. ByteCount,Cancel,Cases,Catch,Ceiling,CForm,Character,Characters,%
  464. ChebyshevT,ChebyshevU,Check,Chop,Clear,ClearAll,ClearAttributes,%
  465. ClipFill,Close,Coefficient,CoefficientList,Collect,ColumnForm,%
  466. Complement,Complex,CompoundExpression,Condition,Conjugate,%
  467. Constants,Context,Continuation,Continue,ContourGraphics,%
  468. ContourPlot,Cos,Cosh,Cot,Coth,Count,Csc,Csch,Cubics,Cyclotomic,%
  469. D,Dashing,Decompose,Decrement,Default,Definition,Denominator,%
  470. DensityGraphics,DensityPlot,Depth,Derivative,Det,DiagonalMatrix,%
  471. DigitBlock,Dimensions,DirectedInfinity,Display,DisplayFunction,%
  472. Distribute,Divide,DivideBy,Divisors,DivisorSigma,Do,Dot,Drop,Dt,%
  473. Dump,EdgeForm,Eigensystem,Eigenvalues,Eigenvectors,Eliminate,%
  474. EllipticE,EllipticExp,EllipticF,EllipticK,EllipticLog,EllipticPi,%
  475. EllipticTheta,End,EndPackage,EngineeringForm,Environment,Equal,%
  476. Erf,EulerE,EulerPhi,EvenQ,Exit,Exp,Expand,ExpandAll,%
  477. ExpandDenominator,ExpandNumerator,ExpIntegralE,ExpIntegralEi,%
  478. Exponent,Expression,ExtendedGCD,FaceForm,Factor,FactorComplete,%
  479. Factorial,Factorial2,FactorInteger,FactorList,FactorSquareFree,%
  480. FactorSquareFreeList,FactorTerms,FactorTermsList,FindMinimum,%
  481. FindRoot,First,Fit,FixedPoint,Flatten,Floor,FontForm,For,Format,%
  482. FormatType,FortranForm,Fourier,FreeQ,FullDefinition,FullForm,%
  483. Function,Gamma,GCD,GegenbauerC,General,Get,Goto,Graphics,%
  484. Graphics3D,GrayLevel,Greater,GreaterEqual,Head,HermiteH,%
  485. HiddenSurface,Hold,HoldForm,Hypergeometric0F1, Hypergeometric1F1,%
  486. Hypergeometric2F1,HypergeometricU,Identity,IdentityMatrix,If,Im,%
  487. Implies,In,Increment,Indent,Infix,Information,Inner,Input,%
  488. InputForm,InputString,Insert,Integer,IntegerQ,Integrate,%
  489. Intersection,Inverse,InverseFourier,InverseJacobiSN,%
  490. InverseSeries,JacobiAmplitude,JacobiP,JacobiSN,JacobiSymbol,Join,%
  491. Label,LaguerreL,Last,LatticeReduce,LCM,LeafCount,LegendreP,%
  492. LegendreQ,LegendreType,Length,LerchPhi,Less,LessEqual,Level,%
  493. Lighting,LightSources,Limit,Line,LinearSolve,LineBreak,List,%
  494. ListContourPlot,ListDensityPlot,ListPlot,ListPlot3D,Literal,Log,%
  495. LogicalExpand,LogIntegral,MainSolve,Map,MapAll,MapAt,MatchQ,%
  496. MatrixForm,MatrixQ,Max,MaxBend,MaxMemoryUsed,MemberQ,%
  497. MemoryConstrained,MemoryInUse,Mesh,Message,MessageName,Messages,%
  498. Min,Minors,Minus,Mod,Modulus,MoebiusMu,Multinomial,N,NameQ,Names,%
  499. NBernoulliB,Needs,Negative,Nest,NestList,NIntegrate,%
  500. NonCommutativeMultiply,NonConstants,NonNegative,Normal,Not,%
  501. NProduct,NSum,NullSpace,Number,NumberForm,NumberPoint,NumberQ,%
  502. NumberSeparator,Numerator,O,OddQ,Off,On,OpenAppend,OpenRead,%
  503. OpenTemporary,OpenWrite,Operate,Optional,Options,Or,Order,%
  504. OrderedQ,Out,Outer,OutputForm,PageHeight,PageWidth,%
  505. ParametricPlot,ParametricPlot3D,Part,Partition,PartitionsP,%
  506. PartitionsQ,Pattern,Permutations,Plot,Plot3D,PlotDivision,%
  507. PlotJoined,PlotLabel,PlotPoints,PlotRange,PlotStyle,Pochhammer,%
  508. Plus,Point,PointSize,PolyGamma,Polygon,PolyLog,PolynomialQ,%
  509. PolynomialQuotient,PolynomialRemainder,Position,Positive,Postfix,%
  510. Power,PowerMod,PrecedenceForm,Precision,PreDecrement,Prefix,%
  511. PreIncrement,Prepend,PrependTo,Prime,PrimeQ,Print,PrintForm,%
  512. Product,Protect,PseudoInverse,Put,PutAppend,Quartics,Quit,%
  513. Quotient,Random,Range,Rational,Rationalize,Raw,Re,Read,ReadList,%
  514. Real,Rectangle,Reduce,Remove,RenderAll,Repeated,RepeatedNull,%
  515. Replace,ReplaceAll,ReplaceRepeated,Rest,Resultant,Return,Reverse,%
  516. RGBColor,Roots,RotateLeft,RotateRight,Round,RowReduce,Rule,%
  517. RuleDelayed,Run,RunThrough,SameQ,Save,Scaled,Scan,ScientificForm,%
  518. Sec,Sech,SeedRandom,Select,Sequence,SequenceForm,Series,%
  519. SeriesData,Set,SetAttributes,SetDelayed,SetOptions,Shading,Share,%
  520. Short,Show,Sign,Signature,Simplify,Sin,SingularValues,Sinh,%
  521. Skeleton,Slot,SlotSequence,Solve,SolveAlways,Sort,%
  522. SphericalHarmonicY,Splice,Sqrt,StirlingS1,StirlingS2,String,%
  523. StringBreak,StringForm,StringJoin,StringLength,StringMatchQ,%
  524. StringSkeleton,Subscript,Subscripted,Subtract,SubtractForm,Sum,%
  525. Superscript,SurfaceGraphics,Switch,Symbol,Table,TableForm,TagSet,%
  526. TagSetDelayed,TagUnset,Take,Tan,Tanh,ToString,TensorRank,TeXForm,%
  527. Text,TextForm,Thickness,Thread,Through,Throw,Ticks,%
  528. TimeConstrained,Times,TimesBy,Timing,ToExpression,Together,%
  529. ToRules,ToString,TotalHeight,TotalWidth,Transpose,TreeForm,TrueQ,%
  530. Unequal,Union,Unique,Unprotect,Unset,Update,UpSet,UpSetDelayed,%
  531. ValueQ,Variables,VectorQ,ViewPoint,WeierstrassP,%
  532. WeierstrassPPrime,Which,While,WorkingPrecision,Write,WriteString,%
  533. Xor,ZeroTest,Zeta},%
  534. morendkeywords={All,Automatic,Catalan,ComplexInfinity,Constant,%
  535. Degree,E,EndOfFile,EulerGamma,False,Flat,GoldenRatio,HoldAll,%
  536. HoldFirst,HoldRest,I,Indeterminate,Infinity,Listable,Locked,%
  537. Modular,None,Null,OneIdentity,Orderless,Pi,Protected,%
  538. ReadProtected,True,$CommandLine,$Context,$ContextPath,$Display,%
  539. $DisplayFunction,$Echo,$Epilog,$IgnoreEOF,$Line,$Messages,%
  540. $Output,$Path,$Post,$Pre,$PrePrint,$RecursionLimit,$System,%
  541. $Urgent,$Version},%
  542. sensitive,%
  543. morecomment=[s]{(*}{*)},%
  544. morestring=[d]"%
  545. }[keywords,comments,strings]%
  546. %%
  547. %% Octave definition (c) 2001,2002 Ulrich G. Wortmann
  548. %% <[email protected]>
  549. %%
  550. \lst@definelanguage{Octave}%
  551. {morekeywords={gt,lt,gt,lt,amp,abs,acos,acosh,acot,acoth,acsc,acsch,%
  552. all,angle,ans,any,asec,asech,asin,asinh,atan,atan2,atanh,auread,%
  553. auwrite,axes,axis,balance,bar,bessel,besselk,bessely,beta,%
  554. betainc,betaln,blanks,bone,break,brighten,capture,cart2pol,%
  555. cart2sph,caxis,cd,cdf2rdf,cedit,ceil,chol,cla,clabel,clc,clear,%
  556. clf,clock,close,colmmd,Colon,colorbar,colormap,ColorSpec,colperm,%
  557. comet,comet3,compan,compass,computer,cond,condest,conj,contour,%
  558. contour3,contourc,contrast,conv,conv2,cool,copper,corrcoef,cos,%
  559. cosh,cot,coth,cov,cplxpair,cputime,cross,csc,csch,csvread,%
  560. csvwrite,cumprod,cumsum,cylinder,date,dbclear,dbcont,dbdown,%
  561. dbquit,dbstack,dbstatus,dbstep,dbstop,dbtype,dbup,ddeadv,ddeexec,%
  562. ddeinit,ddepoke,ddereq,ddeterm,ddeunadv,deblank,dec2hex,deconv,%
  563. del2,delete,demo,det,diag,diary,diff,diffuse,dir,disp,dlmread,%
  564. dlmwrite,dmperm,dot,drawnow,echo,eig,ellipj,ellipke,else,elseif,%
  565. end,engClose,engEvalString,engGetFull,engGetMatrix,engOpen,%
  566. engOutputBuffer,engPutFull,engPutMatrix,engSetEvalCallback,%
  567. engSetEvalTimeout,engWinInit,eps,erf,erfc,erfcx,erfinv,%
  568. errorbar,etime,etree,eval,exist,exp,expint,expm,expo,eye,fclose,%
  569. feather,feof,ferror,feval,fft,fft2,fftshift,fgetl,fgets,figure,%
  570. fill,fill3,filter,filter2,find,findstr,finite,fix,flag,fliplr,%
  571. flipud,floor,flops,fmin,fmins,fopen,for,format,fplot,fprintf,%
  572. fread,frewind,fscanf,fseek,ftell,full,function,funm,fwrite,fzero,%
  573. gallery,gamma,gammainc,gammaln,gca,gcd,gcf,gco,get,getenv,%
  574. getframe,ginput,global,gplot,gradient,gray,graymon,grid,griddata,%
  575. gtext,hadamard,hankel,help,hess,hex2dec,hex2num,hidden,hilb,hist,%
  576. hold,home,hostid,hot,hsv,hsv2rgb,if,ifft,ifft2,imag,image,%
  577. imagesc,Inf,info,input,int2str,interp1,interp2,interpft,inv,%
  578. invhilb,isempty,isglobal,ishold,isieee,isinf,isletter,isnan,%
  579. isreal,isspace,issparse,isstr,jet,keyboard,kron,lasterr,lcm,%
  580. legend,legendre,length,lin2mu,line,linspace,load,log,log10,log2,%
  581. loglog,logm,logspace,lookfor,lower,ls,lscov,lu,magic,matClose,%
  582. matDeleteMatrix,matGetDir,matGetFp,matGetFull,matGetMatrix,%
  583. matGetNextMatrix,matGetString,matlabrc,matlabroot,matOpen,%
  584. matPutFull,matPutMatrix,matPutString,max,mean,median,menu,mesh,%
  585. meshc,meshgrid,meshz,mexAtExit,mexCallMATLAB,mexdebug,%
  586. mexErrMsgTxt,mexEvalString,mexFunction,mexGetFull,mexGetMatrix,%
  587. mexGetMatrixPtr,mexPrintf,mexPutFull,mexPutMatrix,mexSetTrapFlag,%
  588. min,more,movie,moviein,mu2lin,mxCalloc,mxCopyCharacterToPtr,%
  589. mxCopyComplex16ToPtr,mxCopyInteger4ToPtr,mxCopyPtrToCharacter,%
  590. mxCopyPtrToComplex16,mxCopyPtrToInteger4,mxCopyPtrToReal8,%
  591. mxCopyReal8ToPtr,mxCreateFull,mxCreateSparse,mxCreateString,%
  592. mxFree,mxFreeMatrix,mxGetIr,mxGetJc,mxGetM,mxGetN,mxGetName,%
  593. mxGetNzmax,mxGetPi,mxGetPr,mxGetScalar,mxGetString,mxIsComplex,%
  594. mxIsFull,mxIsNumeric,mxIsSparse,mxIsString,mxIsTypeDouble,%
  595. mxSetIr,mxSetJc,mxSetM,mxSetN,mxSetName,mxSetNzmax,mxSetPi,%
  596. mxSetPr,NaN,nargchk,nargin,nargout,newplot,nextpow2,nnls,nnz,%
  597. nonzeros,norm,normest,null,num2str,nzmax,ode23,ode45,orient,orth,%
  598. pack,pascal,patch,path,pause,pcolor,pi,pink,pinv,plot,plot3,%
  599. pol2cart,polar,poly,polyder,polyeig,polyfit,polyval,polyvalm,%
  600. pow2,print,printopt,prism,prod,pwd,qr,qrdelete,qrinsert,quad,%
  601. quad8,quit,quiver,qz,rand,randn,randperm,rank,rat,rats,rbbox,%
  602. rcond,real,realmax,realmin,refresh,rem,reset,reshape,residue,%
  603. return,rgb2hsv,rgbplot,rootobject,roots,rose,rosser,rot90,rotate,%
  604. round,rref,rrefmovie,rsf2csf,save,saxis,schur,sec,sech,semilogx,%
  605. semilogy,set,setstr,shading,sign,sin,sinh,size,slice,sort,sound,%
  606. spalloc,sparse,spaugment,spconvert,spdiags,specular,speye,spfun,%
  607. sph2cart,sphere,spinmap,spline,spones,spparms,sprandn,sprandsym,%
  608. sprank,sprintf,spy,sqrt,sqrtm,sscanf,stairs,startup,std,stem,%
  609. str2mat,str2num,strcmp,strings,strrep,strtok,subplot,subscribe,%
  610. subspace,sum,surf,surface,surfc,surfl,surfnorm,svd,symbfact,%
  611. symmmd,symrcm,tan,tanh,tempdir,tempname,terminal,text,tic,title,%
  612. toc,toeplitz,trace,trapz,tril,triu,type,uicontrol,uigetfile,%
  613. uimenu,uiputfile,unix,unwrap,upper,vander,ver,version,view,%
  614. viewmtx,waitforbuttonpress,waterfall,wavread,wavwrite,what,%
  615. whatsnew,which,while,white,whitebg,who,whos,wilkinson,wk1read,%
  616. stderr,stdout,plot,set,endif,wk1write,xlabel,xor,ylabel,zeros,%
  617. zlabel,zoom,endwhile,endfunction},%
  618. sensitive=f,%
  619. morecomment=[l]\#,%
  620. morecomment=[l]\#\#,%
  621. morestring=[m]',%
  622. morestring=[m]"%
  623. }[keywords,comments,strings]%
  624. \lst@definelanguage[XSC]{Pascal}[Standard]{Pascal}
  625. {deletekeywords={alfa,byte,pack,unpack},% 1998 Andreas Stephan
  626. morekeywords={dynamic,external,forward,global,module,nil,operator,%
  627. priority,sum,type,use,dispose,mark,page,release,cimatrix,%
  628. cinterval,civector,cmatrix,complex,cvector,dotprecision,imatrix,%
  629. interval,ivector,rmatrix,rvector,string,im,inf,re,sup,chr,comp,%
  630. eof,eoln,expo,image,ival,lb,lbound,length,loc,mant,maxlength,odd,%
  631. ord,pos,pred,round,rval,sign,substring,succ,trunc,ub,ubound}%
  632. }%
  633. \lst@definelanguage[Borland6]{Pascal}[Standard]{Pascal}
  634. {morekeywords={asm,constructor,destructor,implementation,inline,%
  635. interface,nil,object,shl,shr,string,unit,uses,xor},%
  636. morendkeywords={Abs,Addr,ArcTan,Chr,Concat,Copy,Cos,CSeg,DiskFree,%
  637. DiskSize,DosExitCode,DosVersion,DSeg,EnvCount,EnvStr,Eof,Eoln,%
  638. Exp,FExpand,FilePos,FileSize,Frac,FSearch,GetBkColor,GetColor,%
  639. GetDefaultPalette,GetDriverName,GetEnv,GetGraphMode,GetMaxMode,%
  640. GetMaxX,GetMaxY,GetModeName,GetPaletteSize,GetPixel,GetX,GetY,%
  641. GraphErrorMsg,GraphResult,Hi,ImageSize,InstallUserDriver,%
  642. InstallUserFont,Int,IOResult,KeyPressed,Length,Lo,MaxAvail,%
  643. MemAvail,MsDos,Odd,Ofs,Ord,OvrGetBuf,OvrGetRetry,ParamCount,%
  644. ParamStr,Pi,Pos,Pred,Ptr,Random,ReadKey,Round,SeekEof,SeekEoln,%
  645. Seg,SetAspectRatio,Sin,SizeOf,Sound,SPtr,Sqr,Sqrt,SSeg,Succ,%
  646. Swap,TextHeight,TextWidth,Trunc,TypeOf,UpCase,WhereX,WhereY,%
  647. Append,Arc,Assign,AssignCrt,Bar,Bar3D,BlockRead,BlockWrite,ChDir,%
  648. Circle,ClearDevice,ClearViewPort,Close,CloseGraph,ClrEol,ClrScr,%
  649. Dec,Delay,Delete,DelLine,DetectGraph,Dispose,DrawPoly,Ellipse,%
  650. Erase,Exec,Exit,FillChar,FillEllipse,FillPoly,FindFirst,FindNext,%
  651. FloodFill,Flush,FreeMem,FSplit,GetArcCoords,GetAspectRatio,%
  652. GetDate,GetDefaultPalette,GetDir,GetCBreak,GetFAttr,%
  653. GetFillSettings,GetFTime,GetImage,GetIntVec,GetLineSettings,%
  654. GetMem,GetPalette,GetTextSettings,GetTime,GetVerify,%
  655. GetViewSettings,GoToXY,Halt,HighVideo,Inc,InitGraph,Insert,%
  656. InsLine,Intr,Keep,Line,LineRel,LineTo,LowVideo,Mark,MkDir,Move,%
  657. MoveRel,MoveTo,MsDos,New,NormVideo,NoSound,OutText,OutTextXY,%
  658. OvrClearBuf,OvrInit,OvrInitEMS,OvrSetBuf,PackTime,PieSlice,%
  659. PutImage,PutPixel,Randomize,Rectangle,Release,Rename,%
  660. RestoreCrtMode,RmDir,RunError,Sector,Seek,SetActivePage,%
  661. SetAllPalette,SetBkColor,SetCBreak,SetColor,SetDate,SetFAttr,%
  662. SetFillPattern,SetFillStyle,SetFTime,SetGraphBufSize,%
  663. SetGraphMode,SetIntVec,SetLineStyle,SetPalette,SetRGBPalette,%
  664. SetTextBuf,SetTextJustify,SetTextStyle,SetTime,SetUserCharSize,%
  665. SetVerify,SetViewPort,SetVisualPage,SetWriteMode,Sound,Str,%
  666. SwapVectors,TextBackground,TextColor,TextMode,Truncate,%
  667. UnpackTime,Val,Window}%
  668. }%
  669. \lst@definelanguage[Standard]{Pascal}%
  670. {morekeywords={alfa,and,array,begin,boolean,byte,case,char,const,div,%
  671. do,downto,else,end,false,file,for,function,get,goto,if,in,%
  672. integer,label,maxint,mod,new,not,of,or,pack,packed,page,program,%
  673. put,procedure,read,readln,real,record,repeat,reset,rewrite,set,%
  674. text,then,to,true,type,unpack,until,var,while,with,write,%
  675. writeln},%
  676. sensitive=f,%
  677. morecomment=[s]{(*}{*)},%
  678. morecomment=[s]{\{}{\}},%
  679. morestring=[d]'%
  680. }[keywords,comments,strings]%
  681. \lst@definelanguage{Perl}%
  682. {morekeywords={abs,accept,alarm,atan2,bind,binmode,bless,caller,%
  683. chdir,chmod,chomp,chop,chown,chr,chroot,close,closedir,connect,%
  684. continue,cos,crypt,dbmclose,dbmopen,defined,delete,die,do,dump,%
  685. each,else,elsif,endgrent,endhostent,endnetent,endprotoent,%
  686. endpwent,endservent,eof,eval,exec,exists,exit,exp,fcntl,fileno,%
  687. flock,for,foreach,fork,format,formline,getc,getgrent,getgrgid,%
  688. getgrnam,gethostbyaddr,gethostbyname,gethostent,getlogin,%
  689. getnetbyaddr,getnetbyname,getnetent,getpeername,getpgrp,%
  690. getppid,getpriority,getprotobyname,getprotobynumber,getprotoent,%
  691. getpwent,getpwnam,getpwuid,getservbyname,getservbyport,%
  692. getservent,getsockname,getsockopt,glob,gmtime,goto,grep,hex,if,%
  693. import,index,int,ioctl,join,keys,kill,last,lc,lcfirst,length,%
  694. link,listen,local,localtime,log,lstat,m,map,mkdir,msgctl,msgget,%
  695. msgrcv,msgsnd,my,next,no,oct,open,opendir,ord,pack,package,pipe,%
  696. pop,pos,print,printf,prototype,push,q,qq,quotemeta,qw,qx,rand,%
  697. read,readdir,readlink,recv,redo,ref,rename,require,reset,return,%
  698. reverse,rewinddir,rindex,rmdir,s,scalar,seek,seekdir,select,%
  699. semctl,semget,semop,send,setgrent,sethostent,setnetent,setpgrp,%
  700. setpriority,setprotoent,setpwent,setservent,setsockopt,shift,%
  701. shmctl,shmget,shmread,shmwrite,shutdown,sin,sleep,socket,%
  702. socketpair,sort,splice,split,sprintf,sqrt,srand,stat,study,sub,%
  703. substr,symlink,syscall,sysopen,sysread,system,syswrite,tell,%
  704. telldir,tie,tied,time,times,tr,truncate,uc,ucfirst,umask,undef,%
  705. unless,unlink,unpack,unshift,untie,until,use,utime,values,vec,%
  706. wait,waitpid,wantarray,warn,while,write,y},%
  707. sensitive,%
  708. morecomment=[l]\#,%
  709. morestring=[b]",%
  710. morestring=[b]',%
  711. MoreSelectCharTable=%
  712. \lst@ReplaceInput{\$\#}{\lst@ProcessOther\$\lst@ProcessOther\#}%
  713. }[keywords,comments,strings]%
  714. %%
  715. %% POV definition (c) 1999 Berthold H\"ollmann
  716. %% <[email protected]>
  717. %%
  718. \lst@definelanguage{POV}%
  719. {morekeywords={abs,absorption,acos,acosh,adaptive,adc_bailout,agate,%
  720. agate_turb,all,alpha,ambient,ambient_light,angle,aperture,append,%
  721. arc_angle,area_light,array,asc,asin,asinh,assumed_gamma,atan,%
  722. atan2,atanh,average,background,bezier_spline,bicubic_patch,%
  723. black_hole,blob,blue,blur_samples,bounded_by,box,boxed,bozo,%
  724. break,brick,brick_size,brightness,brilliance,bumps,bump_map,%
  725. bump_size,camera,case,caustics,ceil,checker,chr,clipped_by,clock,%
  726. clock_delta,color,color_map,colour,colour_map,component,%
  727. composite,concat,cone,confidence,conic_sweep,control0,control1,%
  728. cos,cosh,count,crackle,crand,cube,cubic,cubic_spline,cubic_wave,%
  729. cylinder,cylindrical,debug,declare,default,defined,degrees,%
  730. density,density_file,density_map,dents,difference,diffuse,%
  731. dimensions,dimension_size,direction,disc,distance,%
  732. distance_maximum,div,eccentricity,else,emission,end,error,%
  733. error_bound,exp,extinction,fade_distance,fade_power,falloff,%
  734. falloff_angle,false,fclose,file_exists,filter,finish,fisheye,%
  735. flatness,flip,floor,focal_point,fog,fog_alt,fog_offset,fog_type,%
  736. fopen,frequency,gif,global_settings,gradient,granite,%
  737. gray_threshold,green,height_field,hexagon,hf_gray_16,hierarchy,%
  738. hollow,hypercomplex,if,ifdef,iff,ifndef,image_map,include,int,%
  739. interior,interpolate,intersection,intervals,inverse,ior,irid,%
  740. irid_wavelength,jitter,julia_fractal,lambda,lathe,leopard,%
  741. light_source,linear_spline,linear_sweep,local,location,log,%
  742. looks_like,look_at,low_error_factor,macro,mandel,map_type,marble,%
  743. material,material_map,matrix,max,max_intersections,max_iteration,%
  744. max_trace_level,media,media_attenuation,media_interaction,merge,%
  745. mesh,metallic,min,minimum_reuse,mod,mortar,nearest_count,no,%
  746. normal,normal_map,no_shadow,number_of_waves,object,octaves,off,%
  747. offset,omega,omnimax,on,once,onion,open,orthographic,panoramic,%
  748. perspective,pgm,phase,phong,phong_size,pi,pigment,pigment_map,%
  749. planar,plane,png,point_at,poly,polygon,poly_wave,pot,pow,ppm,%
  750. precision,prism,pwr,quadratic_spline,quadric,quartic,quaternion,%
  751. quick_color,quick_colour,quilted,radial,radians,radiosity,radius,%
  752. rainbow,ramp_wave,rand,range,ratio,read,reciprocal,%
  753. recursion_limit,red,reflection,reflection_exponent,refraction,%
  754. render,repeat,rgb,rgbf,rgbft,rgbt,right,ripples,rotate,roughness,%
  755. samples,scale,scallop_wave,scattering,seed,shadowless,sin,%
  756. sine_wave,sinh,sky,sky_sphere,slice,slope_map,smooth,%
  757. smooth_triangle,sor,specular,sphere,spherical,spiral1,spiral2,%
  758. spotlight,spotted,sqr,sqrt,statistics,str,strcmp,strength,strlen,%
  759. strlwr,strupr,sturm,substr,superellipsoid,switch,sys,t,tan,tanh,%
  760. text,texture,texture_map,tga,thickness,threshold,tightness,tile2,%
  761. tiles,torus,track,transform,translate,transmit,triangle,%
  762. triangle_wave,true,ttf,turbulence,turb_depth,type,u,%
  763. ultra_wide_angle,undef,union,up,use_color,use_colour,use_index,%
  764. u_steps,v,val,variance,vaxis_rotate,vcross,vdot,version,vlength,%
  765. vnormalize,vrotate,v_steps,warning,warp,water_level,waves,while,%
  766. width,wood,wrinkles,write,x,y,yes,z},%
  767. moredirectives={break,case,debug,declare,default,else,end,fclose,%
  768. fopen,local,macro,read,render,statistics,switch,undef,version,%
  769. warning,write},%
  770. sensitive,%
  771. morecomment=[l]//,%
  772. morecomment=[s]{/*}{*/},%
  773. morestring=[d]",%
  774. }[keywords,directives,comments,strings]%
  775. %%
  776. %% Python definition (c) 1998 Michael Weber
  777. %% <[email protected]>
  778. %%
  779. \lst@definelanguage{Python}%
  780. {morekeywords={access,and,break,class,continue,def,del,elif,else,%
  781. except,exec,finally,for,from,global,if,import,in,is,lambda,not,%
  782. or,pass,print,raise,return,try,while},%
  783. sensitive=true,%
  784. morecomment=[l]\#,%
  785. morecomment=[s]{'''}{'''},% used for documentation text
  786. morecomment=[s]{"""}{"""},% added by Philipp Matthias Hahn
  787. morestring=[b]',%
  788. morestring=[b]"%
  789. }%
  790. %%
  791. %% SQL definition (c) 1998 Christian Haul
  792. %% <[email protected]>
  793. %% and (c) 2002 Neil Conway <[email protected]>
  794. %%
  795. \lst@definelanguage{SQL}%
  796. {morekeywords={ABSOLUTE,ACTION,ADD,ALLOCATE,ALTER,ARE,AS,ASSERTION,%
  797. AT,BETWEEN,BIT,BIT_LENGTH,BOTH,BY,CASCADE,CASCADED,CASE,CAST,%
  798. CATALOG,CHAR,CHAR_LENGTH,CHARACTER_LENGTH,CLUSTER,COALESCE,%
  799. COLLATE,COLLATION,COLUMN,CONNECT,CONNECTION,CONSTRAINT,%
  800. CONSTRAINTS,CONVERT,CORRESPONDING,CREATE,CROSS,CURRENT_DATE,%
  801. CURRENT_TIME,CURRENT_TIMESTAMP,CURRENT_USER,DATE,DAY,DEALLOCATE,%
  802. DEC,DECIMAL,DEFERRABLE,DEFERED,DESCRIBE,DESCRIPTOR,DIAGNOSTICS,%
  803. DISCONNECT,DOMAIN,DROP,ELSE,END,EXEC,EXCEPT,EXCEPTION,EXECUTE,%
  804. EXTERNAL,EXTRACT,FALSE,FIRST,FLOAT,FOREIGN,FROM,FULL,GET,GLOBAL,%
  805. GRAPHIC,HAVING,HOUR,IDENTITY,IMMEDIATE,INDEX,INITIALLY,INNER,%
  806. INPUT,INSENSITIVE,INSERT,INT,INTO,INTEGER,INTERSECT,INTERVAL,%
  807. ISOLATION,JOIN,KEY,LAST,LEADING,LEFT,LEVEL,LIMIT,LOCAL,LOWER,%
  808. MATCH,MINUTE,MONTH,NAMES,NATIONAL,NATURAL,NCHAR,NEXT,NO,NOT,NULL,%
  809. NULLIF,OCTET_LENGTH,ON,ONLY,ORDER,ORDERED,OUTER,OUTPUT,OVERLAPS,%
  810. PAD,PARTIAL,POSITION,PREPARE,PRESERVE,PRIMARY,PRIOR,READ,%
  811. RELATIVE,RESTRICT,REVOKE,RIGHT,ROWS,SCROLL,SECOND,SELECT,SESSION,%
  812. SESSION_USER,SIZE,SMALLINT,SPACE,SQLSTATE,SUBSTRING,SYSTEM_USER,%
  813. TABLE,TEMPORARY,THEN,TIME,TIMESTAMP,TIMEZONE_HOUR,%
  814. TIMEZONE_MINUTE,TRAILING,TRANSACTION,TRANSLATE,TRANSLATION,TRIM,%
  815. TRUE,UNIQUE,UNKNOWN,UPPER,USAGE,USING,VALUE,VALUES,VARCHAR,%
  816. VARGRAPHIC,VARYING,WHEN,WHERE,WRITE,YEAR,ZONE},%
  817. sensitive,%
  818. morecomment=[l]--,%
  819. morecomment=[s]{/*}{*/},%
  820. morestring=[d]',%
  821. morestring=[d]"%
  822. }[keywords,comments,strings]%
  823. %%
  824. %% VHDL definition (c) 1997 Kai Wollenweber <[email protected]>
  825. %%
  826. \lst@definelanguage{VHDL}%
  827. {morekeywords={ALL,ARCHITECTURE,ABS,AND,ASSERT,ARRAY,AFTER,ALIAS,%
  828. ACCESS,ATTRIBUTE,BEGIN,BODY,BUS,BLOCK,BUFFER,CONSTANT,CASE,%
  829. COMPONENT,CONFIGURATION,DOWNTO,ELSE,ELSIF,END,ENTITY,EXIT,%
  830. FUNCTION,FOR,FILE,GENERIC,GENERATE,GUARDED,GROUP,IF,IN,INOUT,IS,%
  831. INERTIAL,IMPURE,LIBRARY,LOOP,LABEL,LITERAL,LINKAGE,MAP,MOD,NOT,%
  832. NOR,NAND,NULL,NEXT,NEW,OUT,OF,OR,OTHERS,ON,OPEN,PROCESS,PORT,%
  833. PACKAGE,PURE,PROCEDURE,POSTPONED,RANGE,REM,ROL,ROR,REPORT,RECORD,%
  834. RETURN,REGISTER,REJECT,SIGNAL,SUBTYPE,SLL,SRL,SLA,SRA,SEVERITY,%
  835. SELECT,THEN,TYPE,TRANSPORT,TO,USE,UNITS,UNTIL,VARIABLE,WHEN,WAIT,%
  836. WHILE,XOR,XNOR},%
  837. sensitive=f,% 1998 Gaurav Aggarwal
  838. morecomment=[l]--,%
  839. morestring=[d]{"}%
  840. }[keywords,comments,strings]%
  841. %%
  842. %% VHDL-AMS definition (c) Steffen Klupsch
  843. %%
  844. \lst@definelanguage[AMS]{VHDL}[]{VHDL}%
  845. {morekeywords={ACROSS,ARRAY,BREAK,DISCONNECT,NATURE,NOISE,PORT,%
  846. PROCEDURAL,QUANTITY,SHARED,SPECTRUM,SUBNATURE,TERMINAL,THROUGH,%
  847. TOLERANCE,UNAFFACTED,UNITS}}
  848. \lst@definelanguage{XML}%
  849. {keywords={,CDATA,DOCTYPE,ATTLIST,termdef,ELEMENT,EMPTY,ANY,ID,%
  850. IDREF,IDREFS,ENTITY,ENTITIES,NMTOKEN,NMTOKENS,NOTATION,%
  851. INCLUDE,IGNORE,SYSTEM,PUBLIC,NDATA,PUBLIC,%
  852. PCDATA,REQUIRED,IMPLIED,FIXED,%%% preceded by #
  853. xml,xml:space,xml:lang,version,standalone,default,preserve},%
  854. alsoother=$,%
  855. alsoletter=:,%
  856. keywordsinside=<>,%
  857. morestring=[d]",% ??? doubled
  858. morestring=[d]',% ??? doubled
  859. MoreSelectCharTable=%
  860. \lst@CArgX--\relax\lst@DefDelimB{}{}%
  861. {\ifnum\lst@mode=\lst@insidemode\else
  862. \expandafter\@gobblethree
  863. \fi}%
  864. \lst@BeginComment\lst@commentmode{{\lst@commentstyle}}%
  865. \lst@CArgX--\relax\lst@DefDelimE{}{}{}%
  866. \lst@EndComment\lst@commentmode
  867. \lst@CArgX[CDATA[\relax\lst@CDef{}%
  868. {\ifnum\lst@mode=\lst@insidemode
  869. \expandafter\lst@BeginCDATA
  870. \else \expandafter\lst@CArgEmpty
  871. \fi}%
  872. \@empty
  873. \lst@CArgX]]\relax\lst@CDef{}%
  874. {\ifnum\lst@mode=\lst@GPmode
  875. \expandafter\lst@EndComment
  876. \else \expandafter\lst@CArgEmpty
  877. \fi}%
  878. \@empty
  879. }[keywords,comments,strings,html]%
  880. \endinput
  881. %%
  882. %% End of file `lstlang1.sty'.