1121
|
1 " Vim syntax file
|
|
2 " Language: Hamster Scripting Language
|
|
3 " Maintainer: David Fishburn <fishburn@ianywhere.com>
|
|
4 " Last Change: Sun Oct 24 2004 7:11:50 PM
|
|
5 " Version: 2.0.6.0
|
|
6
|
|
7 " Description: Hamster Classic
|
|
8 " Hamster is a local server for news and mail. It's a windows-32-bit-program.
|
|
9 " It allows the use of multiple news- and mailserver and combines them to one
|
|
10 " mail- and newsserver for the news/mail-client. It load faster than a normal
|
|
11 " newsreader because many threads can run simultaneous. It contains scorefile
|
|
12 " for news and mail, a build-in script language, the GUI allows translation to
|
|
13 " other languages, it can be used in a network and that's not all features...
|
|
14 "
|
|
15 " For version 6.x: Quit when a syntax file was already loaded
|
|
16 if version < 600
|
|
17 syntax clear
|
|
18 elseif exists("b:current_syntax")
|
|
19 finish
|
|
20 endif
|
|
21
|
|
22 syn case ignore
|
|
23
|
|
24 syn keyword hamsterSpecial abs
|
|
25 syn keyword hamsterSpecial artaddheader
|
|
26 syn keyword hamsterSpecial artalloc
|
|
27 syn keyword hamsterSpecial artdelheader
|
|
28 syn keyword hamsterSpecial artfree
|
|
29 syn keyword hamsterSpecial artgetbody
|
|
30 syn keyword hamsterSpecial artgetheader
|
|
31 syn keyword hamsterSpecial artgetheaders
|
|
32 syn keyword hamsterSpecial artgettext
|
|
33 syn keyword hamsterSpecial artheaderexists
|
|
34 syn keyword hamsterSpecial artload
|
|
35 syn keyword hamsterSpecial artsave
|
|
36 syn keyword hamsterSpecial artsetbody
|
|
37 syn keyword hamsterSpecial artsetheader
|
|
38 syn keyword hamsterSpecial artsetheaders
|
|
39 syn keyword hamsterSpecial artsettext
|
|
40 syn keyword hamsterSpecial assert
|
|
41 syn keyword hamsterSpecial atadd
|
|
42 syn keyword hamsterSpecial atclear
|
|
43 syn keyword hamsterSpecial atcount
|
|
44 syn keyword hamsterSpecial ateverymins
|
|
45 syn keyword hamsterSpecial atexecute
|
|
46 syn keyword hamsterSpecial atfrom
|
|
47 syn keyword hamsterSpecial atondays
|
|
48 syn keyword hamsterSpecial atsubfunction
|
|
49 syn keyword hamsterSpecial atuntil
|
|
50 syn keyword hamsterSpecial beep
|
|
51 syn keyword hamsterSpecial break
|
|
52 syn keyword hamsterSpecial chr
|
|
53 syn keyword hamsterSpecial clearxcounter
|
|
54 syn keyword hamsterSpecial clipread
|
|
55 syn keyword hamsterSpecial clipwrite
|
|
56 syn keyword hamsterSpecial const
|
|
57 syn keyword hamsterSpecial constenum
|
|
58 syn keyword hamsterSpecial continue
|
|
59 syn keyword hamsterSpecial copy
|
|
60 syn keyword hamsterSpecial debug
|
|
61 syn keyword hamsterSpecial dec
|
|
62 syn keyword hamsterSpecial decodebase64
|
|
63 syn keyword hamsterSpecial decodeqp
|
|
64 syn keyword hamsterSpecial decodetime
|
|
65 syn keyword hamsterSpecial decxcounter
|
|
66 syn keyword hamsterSpecial delete
|
|
67 syn keyword hamsterSpecial deletehostsentry
|
|
68 syn keyword hamsterSpecial digest
|
|
69 syn keyword hamsterSpecial dirchange
|
|
70 syn keyword hamsterSpecial dircurrent
|
|
71 syn keyword hamsterSpecial direxists
|
|
72 syn keyword hamsterSpecial dirmake
|
|
73 syn keyword hamsterSpecial dirremove
|
|
74 syn keyword hamsterSpecial dirsystem
|
|
75 syn keyword hamsterSpecial dirwindows
|
|
76 syn keyword hamsterSpecial diskfreekb
|
|
77 syn keyword hamsterSpecial dllcall
|
|
78 syn keyword hamsterSpecial dllfree
|
|
79 syn keyword hamsterSpecial dlllasterror
|
|
80 syn keyword hamsterSpecial dllload
|
|
81 syn keyword hamsterSpecial dump
|
|
82 syn keyword hamsterSpecial encodetime
|
|
83 syn keyword hamsterSpecial entercontext
|
|
84 syn keyword hamsterSpecial errcatch
|
|
85 syn keyword hamsterSpecial errline
|
|
86 syn keyword hamsterSpecial errlineno
|
|
87 syn keyword hamsterSpecial errmodule
|
|
88 syn keyword hamsterSpecial errmsg
|
|
89 syn keyword hamsterSpecial errnum
|
|
90 syn keyword hamsterSpecial error
|
|
91 syn keyword hamsterSpecial errsender
|
|
92 syn keyword hamsterSpecial eval
|
|
93 syn keyword hamsterSpecial eventclose
|
|
94 syn keyword hamsterSpecial eventcreate
|
|
95 syn keyword hamsterSpecial eventmultiplewait
|
|
96 syn keyword hamsterSpecial eventpulse
|
|
97 syn keyword hamsterSpecial eventreset
|
|
98 syn keyword hamsterSpecial eventset
|
|
99 syn keyword hamsterSpecial eventwait
|
|
100 syn keyword hamsterSpecial execute
|
|
101 syn keyword hamsterSpecial false
|
|
102 syn keyword hamsterSpecial filecopy
|
|
103 syn keyword hamsterSpecial filedelete
|
|
104 syn keyword hamsterSpecial fileexists
|
|
105 syn keyword hamsterSpecial filemove
|
|
106 syn keyword hamsterSpecial filerename
|
|
107 syn keyword hamsterSpecial filesize
|
|
108 syn keyword hamsterSpecial filetime
|
|
109 syn keyword hamsterSpecial getenv
|
|
110 syn keyword hamsterSpecial getprocessidentifier
|
|
111 syn keyword hamsterSpecial getuptimedays
|
|
112 syn keyword hamsterSpecial getuptimehours
|
|
113 syn keyword hamsterSpecial getuptimemins
|
|
114 syn keyword hamsterSpecial getuptimesecs
|
|
115 syn keyword hamsterSpecial gosub
|
|
116 syn keyword hamsterSpecial goto
|
|
117 syn keyword hamsterSpecial hex
|
|
118 syn keyword hamsterSpecial icase
|
|
119 syn keyword hamsterSpecial iif
|
|
120 syn keyword hamsterSpecial inc
|
|
121 syn keyword hamsterSpecial incxcounter
|
|
122 syn keyword hamsterSpecial inidelete
|
|
123 syn keyword hamsterSpecial inierasesection
|
|
124 syn keyword hamsterSpecial iniread
|
|
125 syn keyword hamsterSpecial iniwrite
|
|
126 syn keyword hamsterSpecial inputbox
|
|
127 syn keyword hamsterSpecial inputpw
|
|
128 syn keyword hamsterSpecial int
|
|
129 syn keyword hamsterSpecial isint
|
|
130 syn keyword hamsterSpecial isstr
|
|
131 syn keyword hamsterSpecial leavecontext
|
|
132 syn keyword hamsterSpecial len
|
|
133 syn keyword hamsterSpecial listadd
|
|
134 syn keyword hamsterSpecial listalloc
|
|
135 syn keyword hamsterSpecial listappend
|
|
136 syn keyword hamsterSpecial listbox
|
|
137 syn keyword hamsterSpecial listclear
|
|
138 syn keyword hamsterSpecial listcount
|
|
139 syn keyword hamsterSpecial listdelete
|
|
140 syn keyword hamsterSpecial listdirs
|
|
141 syn keyword hamsterSpecial listexists
|
|
142 syn keyword hamsterSpecial listfiles
|
|
143 syn keyword hamsterSpecial listfiles
|
|
144 syn keyword hamsterSpecial listfree
|
|
145 syn keyword hamsterSpecial listget
|
|
146 syn keyword hamsterSpecial listgetkey
|
|
147 syn keyword hamsterSpecial listgettag
|
|
148 syn keyword hamsterSpecial listgettext
|
|
149 syn keyword hamsterSpecial listindexof
|
|
150 syn keyword hamsterSpecial listinsert
|
|
151 syn keyword hamsterSpecial listload
|
|
152 syn keyword hamsterSpecial listrasentries
|
|
153 syn keyword hamsterSpecial listsave
|
|
154 syn keyword hamsterSpecial listset
|
|
155 syn keyword hamsterSpecial listsetkey
|
|
156 syn keyword hamsterSpecial listsettag
|
|
157 syn keyword hamsterSpecial listsettext
|
|
158 syn keyword hamsterSpecial listsort
|
|
159 syn keyword hamsterSpecial localhostaddr
|
|
160 syn keyword hamsterSpecial localhostname
|
|
161 syn keyword hamsterSpecial lookuphostaddr
|
|
162 syn keyword hamsterSpecial lookuphostname
|
|
163 syn keyword hamsterSpecial lowercase
|
|
164 syn keyword hamsterSpecial memalloc
|
|
165 syn keyword hamsterSpecial memforget
|
|
166 syn keyword hamsterSpecial memfree
|
|
167 syn keyword hamsterSpecial memgetint
|
|
168 syn keyword hamsterSpecial memgetstr
|
|
169 syn keyword hamsterSpecial memsetint
|
|
170 syn keyword hamsterSpecial memsetstr
|
|
171 syn keyword hamsterSpecial memsize
|
|
172 syn keyword hamsterSpecial memvarptr
|
|
173 syn keyword hamsterSpecial msgbox
|
|
174 syn keyword hamsterSpecial ord
|
|
175 syn keyword hamsterSpecial paramcount
|
|
176 syn keyword hamsterSpecial paramstr
|
|
177 syn keyword hamsterSpecial popupbox
|
|
178 syn keyword hamsterSpecial pos
|
|
179 syn keyword hamsterSpecial print
|
|
180 syn keyword hamsterSpecial quit
|
|
181 syn keyword hamsterSpecial random
|
|
182 syn keyword hamsterSpecial randomize
|
|
183 syn keyword hamsterSpecial rasdial
|
|
184 syn keyword hamsterSpecial rasgetconnection
|
|
185 syn keyword hamsterSpecial rasgetip
|
|
186 syn keyword hamsterSpecial rashangup
|
|
187 syn keyword hamsterSpecial rasisconnected
|
|
188 syn keyword hamsterSpecial re_extract
|
|
189 syn keyword hamsterSpecial re_match
|
|
190 syn keyword hamsterSpecial re_parse
|
|
191 syn keyword hamsterSpecial re_split
|
|
192 syn keyword hamsterSpecial replace
|
|
193 syn keyword hamsterSpecial return
|
|
194 syn keyword hamsterSpecial runscript
|
|
195 syn keyword hamsterSpecial scriptpriority
|
|
196 syn keyword hamsterSpecial set
|
|
197 syn keyword hamsterSpecial sethostsentry_byaddr
|
|
198 syn keyword hamsterSpecial sethostsentry_byname
|
|
199 syn keyword hamsterSpecial setxcounter
|
|
200 syn keyword hamsterSpecial sgn
|
|
201 syn keyword hamsterSpecial shell
|
|
202 syn keyword hamsterSpecial sleep
|
|
203 syn keyword hamsterSpecial stopthread
|
|
204 syn keyword hamsterSpecial str
|
|
205 syn keyword hamsterSpecial syserrormessage
|
|
206 syn keyword hamsterSpecial testmailfilterline
|
|
207 syn keyword hamsterSpecial testnewsfilterline
|
|
208 syn keyword hamsterSpecial ticks
|
|
209 syn keyword hamsterSpecial time
|
|
210 syn keyword hamsterSpecial timegmt
|
|
211 syn keyword hamsterSpecial trace
|
|
212 syn keyword hamsterSpecial trim
|
|
213 syn keyword hamsterSpecial true
|
|
214 syn keyword hamsterSpecial uppercase
|
|
215 syn keyword hamsterSpecial utf7toucs16
|
|
216 syn keyword hamsterSpecial utf8toucs32
|
|
217 syn keyword hamsterSpecial var
|
|
218 syn keyword hamsterSpecial varset
|
|
219 syn keyword hamsterSpecial warning
|
|
220 syn keyword hamsterSpecial xcounter
|
|
221
|
|
222 " common functions
|
|
223 syn keyword hamsterFunction addlog
|
|
224 syn keyword hamsterFunction decodemimeheaderstring
|
|
225 syn keyword hamsterFunction decodetolocalcharset
|
|
226 syn keyword hamsterFunction gettasksactive
|
|
227 syn keyword hamsterFunction gettasksrun
|
|
228 syn keyword hamsterFunction gettaskswait
|
|
229 syn keyword hamsterFunction hamaddgroup
|
|
230 syn keyword hamsterFunction hamaddlog
|
|
231 syn keyword hamsterFunction hamaddpull
|
|
232 syn keyword hamsterFunction hamartcount
|
|
233 syn keyword hamsterFunction hamartdeletemid
|
|
234 syn keyword hamsterFunction hamartdeletemidingroup
|
|
235 syn keyword hamsterFunction hamartdeletenringroup
|
|
236 syn keyword hamsterFunction hamartimport
|
|
237 syn keyword hamsterFunction hamartlocatemid
|
|
238 syn keyword hamsterFunction hamartlocatemidingroup
|
|
239 syn keyword hamsterFunction hamartnomax
|
|
240 syn keyword hamsterFunction hamartnomin
|
|
241 syn keyword hamsterFunction hamarttext
|
|
242 syn keyword hamsterFunction hamarttextexport
|
|
243 syn keyword hamsterFunction hamchangepassword
|
|
244 syn keyword hamsterFunction hamcheckpurge
|
|
245 syn keyword hamsterFunction hamdelgroup
|
|
246 syn keyword hamsterFunction hamdelpull
|
|
247 syn keyword hamsterFunction hamdialogaddpull
|
|
248 syn keyword hamsterFunction hamdialogeditdirs
|
|
249 syn keyword hamsterFunction hamdialogmailkillfilelog
|
|
250 syn keyword hamsterFunction hamdialognewskillfilelog
|
|
251 syn keyword hamsterFunction hamdialogscripts
|
|
252 syn keyword hamsterFunction hamenvelopefrom
|
|
253 syn keyword hamsterFunction hamexepath
|
|
254 syn keyword hamsterFunction hamfetchmail
|
|
255 syn keyword hamsterFunction hamflush
|
|
256 syn keyword hamsterFunction hamgetstatus
|
|
257 syn keyword hamsterFunction hamgroupclose
|
|
258 syn keyword hamsterFunction hamgroupcount
|
|
259 syn keyword hamsterFunction hamgroupindex
|
|
260 syn keyword hamsterFunction hamgroupname
|
|
261 syn keyword hamsterFunction hamgroupnamebyhandle
|
|
262 syn keyword hamsterFunction hamgroupopen
|
|
263 syn keyword hamsterFunction hamgroupspath
|
|
264 syn keyword hamsterFunction hamhscpath
|
|
265 syn keyword hamsterFunction hamhsmpath
|
|
266 syn keyword hamsterFunction hamimapserver
|
|
267 syn keyword hamsterFunction hamisidle
|
|
268 syn keyword hamsterFunction hamlogspath
|
|
269 syn keyword hamsterFunction hammailexchange
|
|
270 syn keyword hamsterFunction hammailpath
|
|
271 syn keyword hamsterFunction hammailsoutpath
|
|
272 syn keyword hamsterFunction hammainfqdn
|
|
273 syn keyword hamsterFunction hammainwindow
|
|
274 syn keyword hamsterFunction hammessage
|
|
275 syn keyword hamsterFunction hammidfqdn
|
|
276 syn keyword hamsterFunction hamnewmail
|
|
277 syn keyword hamsterFunction hamnewserrpath
|
|
278 syn keyword hamsterFunction hamnewsjobsadd
|
|
279 syn keyword hamsterFunction hamnewsjobscheckactive
|
|
280 syn keyword hamsterFunction hamnewsjobsclear
|
|
281 syn keyword hamsterFunction hamnewsjobsdelete
|
|
282 syn keyword hamsterFunction hamnewsjobsfeed
|
|
283 syn keyword hamsterFunction hamnewsjobsgetcounter
|
|
284 syn keyword hamsterFunction hamnewsjobsgetparam
|
|
285 syn keyword hamsterFunction hamnewsjobsgetpriority
|
|
286 syn keyword hamsterFunction hamnewsjobsgetserver
|
|
287 syn keyword hamsterFunction hamnewsjobsgettype
|
|
288 syn keyword hamsterFunction hamnewsjobspost
|
|
289 syn keyword hamsterFunction hamnewsjobspostdef
|
|
290 syn keyword hamsterFunction hamnewsjobspull
|
|
291 syn keyword hamsterFunction hamnewsjobspulldef
|
|
292 syn keyword hamsterFunction hamnewsjobssetpriority
|
|
293 syn keyword hamsterFunction hamnewsjobsstart
|
|
294 syn keyword hamsterFunction hamnewsoutpath
|
|
295 syn keyword hamsterFunction hamnewspost
|
|
296 syn keyword hamsterFunction hamnewspull
|
|
297 syn keyword hamsterFunction hamnntpserver
|
|
298 syn keyword hamsterFunction hampassreload
|
|
299 syn keyword hamsterFunction hampath
|
|
300 syn keyword hamsterFunction hampop3server
|
|
301 syn keyword hamsterFunction hampostmaster
|
|
302 syn keyword hamsterFunction hampurge
|
|
303 syn keyword hamsterFunction hamrasdial
|
|
304 syn keyword hamsterFunction hamrashangup
|
|
305 syn keyword hamsterFunction hamrcpath
|
|
306 syn keyword hamsterFunction hamrebuildgloballists
|
|
307 syn keyword hamsterFunction hamrebuildhistory
|
|
308 syn keyword hamsterFunction hamrecoserver
|
|
309 syn keyword hamsterFunction hamreloadconfig
|
|
310 syn keyword hamsterFunction hamreloadipaccess
|
|
311 syn keyword hamsterFunction hamresetcounters
|
|
312 syn keyword hamsterFunction hamrotatelog
|
|
313 syn keyword hamsterFunction hamscorelist
|
|
314 syn keyword hamsterFunction hamscoretest
|
|
315 syn keyword hamsterFunction hamsendmail
|
|
316 syn keyword hamsterFunction hamsendmailauth
|
|
317 syn keyword hamsterFunction hamserverpath
|
|
318 syn keyword hamsterFunction hamsetlogin
|
|
319 syn keyword hamsterFunction hamshutdown
|
|
320 syn keyword hamsterFunction hamsmtpserver
|
|
321 syn keyword hamsterFunction hamstopalltasks
|
|
322 syn keyword hamsterFunction hamthreadcount
|
|
323 syn keyword hamsterFunction hamtrayicon
|
|
324 syn keyword hamsterFunction hamusenetacc
|
|
325 syn keyword hamsterFunction hamversion
|
|
326 syn keyword hamsterFunction hamwaitidle
|
|
327 syn keyword hamsterFunction raslasterror
|
|
328 syn keyword hamsterFunction rfctimezone
|
|
329 syn keyword hamsterFunction settasklimiter
|
|
330
|
|
331 syn keyword hamsterStatement if
|
|
332 syn keyword hamsterStatement else
|
|
333 syn keyword hamsterStatement elseif
|
|
334 syn keyword hamsterStatement endif
|
|
335 syn keyword hamsterStatement do
|
|
336 syn keyword hamsterStatement loop
|
|
337 syn keyword hamsterStatement while
|
|
338 syn keyword hamsterStatement endwhile
|
|
339 syn keyword hamsterStatement repeat
|
|
340 syn keyword hamsterStatement until
|
|
341 syn keyword hamsterStatement for
|
|
342 syn keyword hamsterStatement endfor
|
|
343 syn keyword hamsterStatement sub
|
|
344 syn keyword hamsterStatement endsub
|
|
345 syn keyword hamsterStatement label
|
|
346
|
|
347
|
|
348 " Strings and characters:
|
|
349 syn region hamsterString start=+"+ end=+"+ contains=@Spell
|
|
350 syn region hamsterString start=+'+ end=+'+ contains=@Spell
|
|
351
|
|
352 " Numbers:
|
|
353 syn match hamsterNumber "-\=\<\d*\.\=[0-9_]\>"
|
|
354
|
|
355 " Comments:
|
|
356 syn region hamsterHashComment start=/#/ end=/$/ contains=@Spell
|
|
357 syn cluster hamsterComment contains=hamsterHashComment
|
|
358 syn sync ccomment hamsterHashComment
|
|
359
|
|
360 " Define the default highlighting.
|
|
361 " For version 5.7 and earlier: only when not done already
|
|
362 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
363 if version >= 508 || !exists("did_hamster_syn_inits")
|
|
364 if version < 508
|
|
365 let did_hamster_syn_inits = 1
|
|
366 command -nargs=+ HiLink hi link <args>
|
|
367 else
|
|
368 command -nargs=+ HiLink hi def link <args>
|
|
369 endif
|
|
370
|
|
371 HiLink hamsterHashComment Comment
|
|
372 HiLink hamsterSpecial Special
|
|
373 HiLink hamsterStatement Statement
|
|
374 HiLink hamsterString String
|
|
375 HiLink hamsterFunction Function
|
|
376
|
|
377 delcommand HiLink
|
|
378 endif
|
|
379
|
|
380 let b:current_syntax = "hamster"
|
|
381
|
|
382 " vim:sw=4
|