forked from OrangeTide/fed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfed.syn
373 lines (349 loc) · 13.5 KB
/
fed.syn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
# syntax highlighting data for FED
# ---------------- C/C++ ----------------
Files=c,cpp,cxx,cc,h,hpp,inl,inc
OpenComment1=/*
CloseComment1=*/
EOLComment1=//
HexMarker=0x
Symbols=!&()*+,-./:;<=>?[]^{|}~
String='"
Escape=\
Case=1
RealTabs=0
Indents=/*
Keywords=asm,auto,break,case,catch,char,class,const,continue,default,delete
Keywords=do,double,else,enum,except,extern,far,finally,float,for,friend,goto
Keywords=huge,if,inline,int,bool,long,fixed,near,new,operator,private,mutable
Keywords=protected,typename,false,iterator,const_iterator,signals,slots
Keywords=public,register,return,short,signed,sizeof,static,struct,switch
Keywords=template,this,throw,try,typedef,union,unsigned,virtual,void,volatile
Keywords=while,#define,#elif,#else,#endif,#error,#ifdef,#ifndef,#if,#include
Keywords=#line,#pragma,#undef,#warning,using,namespace,true,emit
Keywords=s8,u8,s16,u16,s32,u32,s64,u64,s128,u128,f32,defined,explicit
End
# ---------------- C# ----------------
Files=cs
OpenComment1=/*
CloseComment1=*/
EOLComment1=//
HexMarker=0x
Symbols=!&()*+,-./:;<=>?[]^{|}~
String='"
Escape=\
Case=1
RealTabs=0
Indents=/*
Keywords=abstract,event,new,struct,as,explicit,null,switch,base
Keywords=extern,object,this,bool,false,operator,throw,break
Keywords=finally,out,true,byte,fixed,override,try,case,float
Keywords=params,typeof,catch,for,private,uint,char,foreach
Keywords=protected,ulong,checked,goto,public,unchecked
Keywords=class,if,readonly,unsafe,const,implicit,ref,ushort
Keywords=continue,in,return,using,decimal,int,sbyte,virtual
Keywords=default,interface,sealed,volatile,delegate,internal
Keywords=short,void,do,is,sizeof,while,double,lock,stackalloc
Keywords=else,long,static,enum,namespace,string,true,false
Keywords=new,as,is,sizeof,typeof,control,checked,unchecked
Keywords=#if,#else,#elif,#endif,#define,#undef,#warning
Keywords=#error,#line,#region,#endregion,partial
End
# ---------------- Pascal ----------------
Files=pas
OpenComment1={
CloseComment1=}
OpenComment2=(*
CloseComment2=*)
EOLComment1=//
HexMarker=$
Symbols=#()*+,-./:;<=>@[]
String='
Keywords=abs,absolute,and,arctan,array,asm,assembler,array,begin,boolean
Keywords=byte,bytebool,case,char,chr,const,constructor,cos,destructor
Keywords=dispose,div,do,downto,else,end,eof,eoln,exp,export,exports,external
Keywords=far,forward,file,for,function,get,goto,if,implementation,in,index
Keywords=inherited,inline,integer,interface,interrupt,label,library,ln
Keywords=longbool,longint,mod,near,new,nil,not,object,odd,of,or,ord,ordinal
Keywords=pack,packed,page,pred,private,pointer,procedure,program,public,put
Keywords=readln,read,real,record,repeat,reset,resident,rewrite,round,set,shl
Keywords=shortint,shr,sin,sqrt,string,succ,then,to,trunc,type,unit,unpack
Keywords=until,uses,var,virtual,while,with,word,wordbool,write,writeln,xor
End
# ---------------- BASIC ----------------
Files=bas
EOLComment1=rem
EOLComment2='
Symbols=!#()*+-/<=>^
String="
Keywords=abs,and,any,as,asc,atn,base,call,case,cdbl,chdir,chr$,cint,circle
Keywords=clear,clng,close,cls,color,com,const,cos,csng,csrlin,cvdmbf,cvsmbf
Keywords=data,declare,def,defint,dim,do,else,end,eof,erase,erdev,erdev$,erl
Keywords=err,error,exit,exp,fileattr,for,fre,freefile,function,get,gosub,goto
Keywords=hex$,if,inkey$,inp,input,input$,instr,int,integer,key,kill,lcase$
Keywords=left$,len,line,loc,locate,lock,lof,log,loop,lpos,lprint,lset,ltrim$
Keywords=mid$,mkdir,name,next,not,oct$,on,open,option,or,out,paint,palette
Keywords=pcopy,peek,pen,play,pmap,point,poke,pos,preset,print,pset,put
Keywords=randomize,read,redim,repeat,restore,resume,return,right$,rmdir,rnd
Keywords=rset,rtrim$,run,screen,seek,seg,select,sgn,shared,shell,sin,space$
Keywords=spc,sqr,static,step,stop,str$,strig,string$,sub,swap,system,tab,tan
Keywords=then,time$,timer,to,type,ucase$,unlock,until,using,val,view,wait
Keywords=width,window,write
End
# ---------------- 4DOS batch files ----------------
Files=bat,btm
EOLComment1=rem
Symbols=%&(),<=>@[]^|
String=`
Escape=
Keywords=alias,and,attrib,beep,break,by,call,cancel,cd,cdd,chcp,chdir,cls
Keywords=color,copy,ctty,date,delay,del,describe,dirs,dir,do,drawbox
Keywords=drawhline,drawvline,,echos,echo,else,elseiff,enddo,endiff,endlocal
Keywords=erase,errorlevel,eset,except,exist,exit,fc,find,format,for,free
Keywords=global,gosub,goto,history,iff,if,inkey,input,iterate,keybd,leave
Keywords=lh,list,loadbtm,loadhigh,log,md,memory,mem,mkdir,mode,more,move
Keywords=not,on,or,path,pause,popd,print,prompt,pushd,quit,rd,reboot,rename
Keywords=ren,replace,return,rmdir,screen,scrput,select,setdos,setlocal
Keywords=setver,set,shift,sort,start,subst,sys,tee,text,then,timer,time,to
Keywords=tree,type,unalias,undelete,unset,until,verify,ver,vol,vscrput,while
Keywords=window,xcopy,xor
End
# ---------------- 80x86 asm (AT&T syntax) ----------------
Files=s
OpenComment1=/*
CloseComment1=*/
EOLComment1=#
EOLComment2=//
HexMarker=0x
Symbols=!$%&(),-./:;<>?[]
String='"
Keywords=aaa,aad,aam,aas,adc,adcb,adcw,adcl,add,addb,addw,addl,and,andb,andw
Keywords=andl,arpl,bound,bsf,bsr,bswap,bt,btc,btr,bts,lcall,call,cbw,cbtw,cdq
Keywords=cltd,clc,cld,cli,clts,cmc,cmp,cmpb,cmpw,cmpl,cmps,cmpsb,cmpsw,cmpsl
Keywords=cmpxchg,cwd,cwtd,cwde,cwtl,daa,das,dec,decb,decw,decl,div,divw,divl
Keywords=enter,esc,hlt,idiv,idivw,idivl,imul,imulw,imull,in,inb,inw,inl,inc
Keywords=incb,incw,incl,ins,insb,insw,insl,int,into,invd,invlpg,iret,iretd,ja
Keywords=jae,jb,jbe,jc,je,jg,jge,jl,jle,jmp,jna,jnae,jnb,jnbe,jnc,jne,jng
Keywords=jnge,jnl,jnle,jno,jnp,jns,jnz,jo,jp,jpe,jpo,js,jz,jcxz,jecxz,jmp
Keywords=ljmp,lahf,lar,lds,lea,leaw,leal,leave,les,lfs,lgdt,lidt,lgs,lldt
Keywords=lmsw,lock,lods,lodsb,lodsw,lodsl,loop,loope,loopz,loopnz,loopne,lsl
Keywords=lss,ltr,mov,movb,movw,movl,movs,movsb,movsw,movsl,movsx,movsbl
Keywords=movsbw,movswl,movzx,movzbl,movzbw,movzwl,mul,mulw,mull,neg,negb,negw
Keywords=negl,nop,not,notb,notw,notl,or,orb,orw,orl,out,outb,outw,outl,outs
Keywords=outsb,outsw,outsl,pop,popb,popw,popl,popa,popal,popf,popfd,push
Keywords=pushb,pushw,pushl,pusha,pushal,pushf,pushfd,rcl,rclb,rclw,rcll,rcr
Keywords=rcrb,rcrw,rcrl,rep,repe,repz,repne,repnz,ret,retf,rol,rolb,rolw,roll
Keywords=ror,rorb,rorw,rorl,sahf,sal,salb,salw,sall,shl,shlb,shlw,shll,sar
Keywords=sarb,sarw,sarl,sbb,sbbb,sbbw,sbbl,scas,scasb,scasw,scasl,setae,setnb
Keywords=setb,setnae,setbe,setna,sete,setz,setne,setnz,setl,setnge,setge
Keywords=setnl,setle,setng,setg,setnle,sets,setns,setc,setnc,seto,setno,setp
Keywords=setpe,setnp,setpo,sgdt,sidt,shl,shlb,shlw,shll,shr,shrb,shrw,shrl
Keywords=shld,shldb,shldw,shldl,shrd,shrdb,shrdw,shrdl,sldt,smsw,stc,std,sti
Keywords=stos,stosb,stosw,stosl,str,sub,subb,subw,subl,test,testb,testw,testl
Keywords=verr,verw,wait,fwait,wbinvd,xchg,xchgb,xchgw,xchgl,xlat,xlatb,xor
Keywords=xorb,xorw,xorl,ax,eax,ah,al,bx,ebx,bh,bl,cx,ecx,ch,cl,dx,edx,dh,dl
Keywords=si,esi,di,edi,sp,esp,bp,ebp,cs,ds,ss,es,fs,gs
End
# ---------------- 80x86 asm (Intel syntax) ----------------
Files=asm
OpenComment1=/*
CloseComment1=*/
EOLComment1=;
EOLComment2=//
HexMarker=0x
Symbols=!$%&(),-./:<>?[]
String='"
Keywords=aaa,aad,aam,aas,adc,add,and,arpl,bound,bsf,bsr,bswap,bt,btc,btr,bts
Keywords=byte,call,cbw,cdq,clc,cld,cli,clts,cmc,cmp,cmps,cmpsb,cmpsw,cmpsl
Keywords=cmpxchg,cwd,cwde,daa,das,dec,div,enter,esc,hlt,idiv,imul,in,inb,inw
Keywords=inl,inc,ins,insb,insw,insl,int,into,invd,invlpg,iret,ja,jae,jb,jbe
Keywords=jc,je,jg,jge,jl,jle,jmp,jna,jnae,jnb,jnbe,jnc,jne,jng,jnge,jnl,jnle
Keywords=jno,jnp,jns,jnz,jo,jp,jpe,jpo,js,jz,jcxz,jecxz,jmp,lahf,lar,lds,lea
Keywords=leave,les,lfs,lgdt,lidt,lgs,lldt,lmsw,lock,lods,lodsb,lodsw,lodsl
Keywords=long,loop,loope,loopz,loopnz,loopne,lsl,lss,ltr,mov,movs,movsb,movsw
Keywords=movsl,movsx,movzx,mul,neg,nop,not,or,out,outb,outw,outl,outs,outsb
Keywords=outsw,outsl,pop,popa,popad,popf,popfd,ptr,push,pusha,pushad,pushf
Keywords=pushfd,rcl,rcr,rep,repe,repz,repne,repnz,ret,retf,rol,ror,sahf,sal
Keywords=shl,sar,sbb,scas,setae,setnb,setb,setnae,setbe,setna,sete,setz,setne
Keywords=setnz,setl,setnge,setge,setnl,setle,setng,setg,setnle,sets,setns
Keywords=setc,setnc,seto,setno,setp,setpe,setnp,setpo,sgdt,sidt,shl,shr,shld
Keywords=shrd,sldt,smsw,stc,std,sti,stos,stosb,stosw,stosl,str,sub,test,verr
Keywords=verw,wait,fwait,wbinvd,word,xchg,xlat,xlatb,xor,ax,eax,ah,al,bx,ebx
Keywords=bh,bl,cx,ecx,ch,cl,dx,edx,dh,dl,si,esi,di,edi,sp,esp,bp,ebp,cs,ds,ss
Keywords=es,fs,gs
End
# ---------------- HTML ----------------
Files=htm,html,xml
OpenComment1=<
CloseComment1=>
Keywords=<,>
End
# ---------------- Allegro Documentation ----------------
Files=_tx
OpenComment1=<
CloseComment1=>
EOLComment1=@
End
# ---------------- EGG scripts ----------------
Files=egg
EOLComment1=#
End
# ---------------- Shell scripts ----------------
Files=sh,bash,cmd
EOLComment1=#
String='"
Escape=\
End
# ---------------- Perl ----------------
Files=pl,pm,perl
EOLComment1=#
String='"
Escape=\
End
# ---------------- Makefiles ----------------
Files=mak,make
EOLComment1=#
String='"
End
# ---------------- Email messages ----------------
Files=msg
EOLComment1=>
Numbers=0
IndentC=0
Indents=>
Wrappers= abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.;?!
End
# ---------------- MAXScript ----------------
Files=ms
EOLComment1=--
String='"
Escape=\
End
# ---------------- PS2 vector unit code ----------------
Files=vsm
OpenComment1=/*
CloseComment1=*/
EOLComment1=//
EOLComment2=;
HexMarker=0x
Symbols=!$%&(),-./:;<>?[]
String='"
Case=0
TabSize=16
Keywords=abs
Keywords=add,addi,addq,addx,addy,addz,addw,adda,addai,addaq
Keywords=addax,adday,addaz,addaw
Keywords=clipw,ftoi0,ftoi4,ftoi12,ftoi15,itof0,itof4,itof12,itof15
Keywords=madd,maddi,maddq,maddx,maddy,maddz,maddw,madda,maddai,maddaq
Keywords=maddax,madday,maddaz,maddaw
Keywords=max,maxi,maxx,maxy,maxz,maxw,mini,minii,minix,miniy,miniz,miniw
Keywords=msub,msubi,msubq,msubx,msuby,msubz,msubw,msuba,msubai,msubaq
Keywords=msubax,msubay,msubaz,msubaw
Keywords=mul,muli,mulq,mulx,muly,mulz,mulw,mula,mulai,mulaq
Keywords=mulax,mulay,mulaz,mulaw
Keywords=nop,opmula,opmsub
Keywords=sub,subi,subq,subx,suby,subz,subw,suba,subai,subaq
Keywords=subax,subay,subaz,subaw
Keywords=b,bal,div,eatan,eatanxy,eatanxz,eexp,eleng,ercpr,erleng,ersadd
Keywords=ersqrt,esadd,esin,esqrt,esum
Keywords=fcand,fceq,fcget,fcor,fcset,fmand,fmeq,fmor,fsand,fseq,fsor,fsset
Keywords=iadd,iaddi,iaddiu,iand
Keywords=ibeq,ibgez,ibgtz,iblez,ibltz,ibne
Keywords=ilw,ilwr,ior,isub,isubiu,isw,iswr,jalr,jr,loi,lq,lqd,lqi
Keywords=mfir,mfp,move,mr32,mtir,rget,rinit,rnext,rsqrt,rxor
Keywords=sq,sqd,sqi,sqrt,waitp,waitq,xgkick,xitop,xtop
Keywords=x,y,z,w,xy,xz,xw,yz,yw,zw,xyz,xyw,xzw,yzw,xyzw
End
# ---------------- arbitrary config files ----------------
Files=cfg
EOLComment1=#
End
# ---------------- vertex shaders ----------------
Files=vsh,vsi
EOLComment1=;
EOLComment2=//
OpenComment1=/*
CloseComment1=*/
String='"
Keywords=add,dp3,dp4,dst,expp,lit,logp,mad,max,min,mov,mul,rcp,rsq,sge,slt,sub
Keywords=def,vs,#include,#define,#ifdef,#ifndef,#endif,#else,#undef
Keywords=dph,rcc,xvs,xvss,xvsw,#pragma,screenspace
End
# ---------------- pixel shaders ----------------
Files=psh,psi
EOLComment1=;
EOLComment2=//
OpenComment1=/*
CloseComment1=*/
String='"
Keywords=add,cnd,dp3,lrp,mad,mov,mul,sub
Keywords=add_x2,cnd_x2,dp3_x2,lrp_x2,mad_x2,mov_x2,mul_x2,sub_x2
Keywords=add_x4,cnd_x4,dp3_x4,lrp_x4,mad_x4,mov_x4,mul_x4,sub_x4
Keywords=add_d2,cnd_d2,dp3_d2,lrp_d2,mad_d2,mov_d2,mul_d2,sub_d2
Keywords=add_sat,cnd_sat,dp3_sat,lrp_sat,mad_sat,mov_sat,mul_sat,sub_sat
Keywords=add_x2_sat,cnd_x2_sat,dp3_x2_sat,lrp_x2_sat
Keywords=mad_x2_sat,mov_x2_sat,mul_x2_sat,sub_x2_sat
Keywords=add_x4_sat,cnd_x4_sat,dp3_x4_sat,lrp_x4_sat
Keywords=mad_x4_sat,mov_x4_sat,mul_x4_sat,sub_x4_sat
Keywords=add_d2_sat,cnd_d2_sat,dp3_d2_sat,lrp_d2_sat
Keywords=mad_d2_sat,mov_d2_sat,mul_d2_sat,sub_d2_sat
#Keywords=r0,r1,r2,r3,t0,t1,t2,t3,v0,v1
#Keywords=a,rgb,rgba
Keywords=tex,texbem,texbeml,texcoord,texkill,texm3x2pad,texm3x2tex,texm3x3pad
Keywords=texm3x3spec,texm3x3tex,texm3x3vspec,texreg2ar,texreg2gb
Keywords=def,ps,#include,#define,#ifdef,#ifndef,#endif,#else,#undef
Keywords=xmma,xmmc,xdm,xdd,xfc,xps
Keywords=texld,texcrd
End
# ---------------- Covenant scripts ----------------
Files=cov
EOLComment1=#
Keywords=lzss,lzhuf
# ---------------- Inno Setup scripts ----------------
Files=iss
OpenComment1=[
CloseComment1=]
OpenComment2=<
CloseComment2=>
Keywords=demo
String='"
# ---------------- Python ----------------
Files=py
OpenComment1=
CloseComment1=
OpenComment2=
CloseComment2=
EOLComment1=#
Symbols=!&()*+,-./:;<=>?[]^{|}~
String='"
Escape=\
Tabsize=4
RealTabs=0
Case=1
End
# ---------------- Jehova argument files ----------------
Files=tes,testament,testicle
EOLComment1=#
EOLComment2=//
String='"
Keywords=true,false,yes,no,y,n,on,off
End
# ---------------- HLSL shader files ----------------
Files=hlsl,fx,shader,sink
OpenComment1=/*
CloseComment1=*/
EOLComment2=//
String='"
RealTabs=0
Case=1
Keywords=interface,true,false,vs,ps,1_1,1_3,1_4,2_0,3_0
Keywords=D3DCOLORtoUBYTE4,abs,acos,all,any,asin,atan,atan2,ceil,clamp,clip,const
Keywords=cos,cosh,cross,ddx,ddy,degrees,determinant,distance,do,dot,exp,exp2
Keywords=extern,faceforward,float,float2,float3,float4,floor,fmod,for,frac,frc
Keywords=frexp,fwidth,if,in,inline,inout,int,isfinite,isinf,isnan,ldexp,len
Keywords=length,lerp,lit,log,log10,log2,matrix,max,min,modf,mul,noise,normalize
Keywords=out,pow,radians,reflect,refract,return,round,rsqrt,sampler,saturate
Keywords=shared,sign,sin,sincos,sinh,smoothstep,sqrt,static,step,string,struct
Keywords=tan,tanh,target,tex1D,tex1Dbias,tex1Dproj,tex2D,tex2Dbias,tex2Dproj
Keywords=tex3D,tex3Dbias,tex3Dproj,texCUBE,texCUBEbias,texCUBEproj,transpose
Keywords=typedef,uniform,vector,volatile,while,void,INPUT,OUTPUT,else
Keywords=#define,#if,#ifdef,#ifndef,#else,#elif,#endif,#error,#undef,include
End