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