6 {
8
9
10
11
12
13
14$this->nocase = "0";
15$this->notrim = "0";
16$this->perl = "0";
17
18
19
20$this->colours = array("blue", "purple", "gray", "brown", "blue");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25
26
27$this->indent = array("{");
28$this->unindent = array("}");
29
30
31
32$this->stringchars = array("\"", "'");
33$this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", "?");
34$this->escchar = "";
35
36
37
38$this->linecommenton = array("//");
39$this->blockcommenton = array("/*");
40$this->blockcommentoff = array("*/");
41
42
43
44$this->keywords = array(
45 "#define" => "1",
46 "#else" => "1",
47 "#endif" => "1",
48 "#if" => "1",
49 "#ifdef" => "1",
50 "#ifndef" => "1",
51 "#include" => "1",
52 "#pragma" => "1",
53 "#undef" => "1",
54 "alias" => "1",
55 "align" => "1",
56 "asm" => "1",
57 "asm_noflush" => "1",
58 "automatic" => "1",
59 "class" => "1",
60 "clear" => "1",
61 "combine" => "1",
62 "cse" => "1",
63 "default_attributes" => "1",
64 "define" => "1",
65 "endasm" => "1",
66 "eramdata" => "1",
67 "fix_byte_write" => "1",
68 "global" => "1",
69 "include" => "1",
70 "iramdata" => "1",
71 "macro" => "1",
72 "noalias" => "1",
73 "noclear" => "1",
74 "nofix_byte_write" => "1",
75 "noframe" => "1",
76 "nomacro" => "1",
77 "nosource" => "1",
78 "public" => "1",
79 "regdef" => "1",
80 "restore_attributes" => "1",
81 "romdata" => "1",
82 "save_attributes" => "1",
83 "size" => "1",
84 "source" => "1",
85 "speed" => "1",
86 "static" => "1",
87 "switch_force_table" => "1",
88 "switch_smart" => "1",
89 "_at" => "2",
90 "_atbit" => "2",
91 "bit" => "2",
92 "bita" => "2",
93 "bitword" => "2",
94 "break" => "2",
95 "case" => "2",
96 "char" => "2",
97 "const" => "2",
98 "continue" => "2",
99 "default" => "2",
100 "do" => "2",
101 "double" => "2",
102 "else" => "2",
103 "esfr" => "2",
104 "esfrbit" => "2",
105 "extern" => "2",
106 "far" => "2",
107 "float" => "2",
108 "for" => "2",
109 "goto" => "2",
110 "huge" => "2",
111 "if" => "2",
112 "int" => "2",
113 "iram" => "2",
114 "long" => "2",
115 "near" => "2",
116 "register" => "2",
117 "return" => "2",
118 "sfr" => "2",
119 "sfrbit" => "2",
120 "signed" => "2",
121 "size_t" => "2",
122 "struct" => "2",
123 "switch" => "2",
124 "system" => "2",
125 "typedef" => "2",
126 "unsigned" => "2",
127 "void" => "2",
128 "volatile" => "2",
129 "while" => "2",
130 "_fstrcat" => "3",
131 "_fstrchr" => "3",
132 "_fstrcmp" => "3",
133 "_fstrcpy" => "3",
134 "_fstrcspn" => "3",
135 "_fstrlen" => "3",
136 "_fstrncat" => "3",
137 "_fstrncmp" => "3",
138 "_fstrncpy" => "3",
139 "_fstrpbrk" => "3",
140 "_fstrrchr" => "3",
141 "_fstrspn" => "3",
142 "_fstrstr" => "3",
143 "_fstrtok" => "3",
144 "_hstrcat" => "3",
145 "_hstrchr" => "3",
146 "_hstrcmp" => "3",
147 "_hstrcpy" => "3",
148 "_hstrcspn" => "3",
149 "_hstrlen" => "3",
150 "_hstrncat" => "3",
151 "_hstrncmp" => "3",
152 "_hstrncpy" => "3",
153 "_hstrpbrk" => "3",
154 "_hstrrchr" => "3",
155 "_hstrspn" => "3",
156 "_hstrstr" => "3",
157 "_hstrtok" => "3",
158 "_ioread" => "3",
159 "_iowrite" => "3",
160 "_stime" => "3",
161 "_time" => "3",
162 "_tolower" => "3",
163 "_toupper" => "3",
164 "_tzset" => "3",
165 "abort" => "3",
166 "abs" => "3",
167 "acos" => "3",
168 "asctime" => "3",
169 "asin" => "3",
170 "assert" => "3",
171 "assert.h" => "3",
172 "atan" => "3",
173 "atan2" => "3",
174 "atexit" => "3",
175 "atof" => "3",
176 "atoi" => "3",
177 "atol" => "3",
178 "bsearch" => "3",
179 "c166.h" => "3",
180 "calloc" => "3",
181 "ceil" => "3",
182 "clearerr" => "3",
183 "clock" => "3",
184 "cos" => "3",
185 "cosh" => "3",
186 "ctime" => "3",
187 "ctype.h" => "3",
188 "difftime" => "3",
189 "div" => "3",
190 "errno.h" => "3",
191 "exit" => "3",
192 "exp" => "3",
193 "fabs" => "3",
194 "fclose" => "3",
195 "feof" => "3",
196 "ferror" => "3",
197 "fflush" => "3",
198 "fgetc" => "3",
199 "fgets" => "3",
200 "float.h" => "3",
201 "floor" => "3",
202 "fmod" => "3",
203 "fopen" => "3",
204 "fprintf" => "3",
205 "fputc" => "3",
206 "fputs" => "3",
207 "fread" => "3",
208 "free" => "3",
209 "freopen" => "3",
210 "frexp" => "3",
211 "fscanf" => "3",
212 "fwrite" => "3",
213 "getc" => "3",
214 "getchar" => "3",
215 "gets" => "3",
216 "gmtime" => "3",
217 "isalnum" => "3",
218 "isalpha" => "3",
219 "isascii" => "3",
220 "iscntrl" => "3",
221 "isdigit" => "3",
222 "isgraph" => "3",
223 "islower" => "3",
224 "isprint" => "3",
225 "ispunct" => "3",
226 "isspace" => "3",
227 "isupper" => "3",
228 "isxdigit" => "3",
229 "labs" => "3",
230 "ldexp" => "3",
231 "ldiv" => "3",
232 "limits.h" => "3",
233 "locale.h" => "3",
234 "localtime" => "3",
235 "log" => "3",
236 "log10" => "3",
237 "longjmp" => "3",
238 "malloc" => "3",
239 "malloc.h" => "3",
240 "math.h" => "3",
241 "memchr" => "3",
242 "memcmp" => "3",
243 "memcpffb" => "3",
244 "memcpffw" => "3",
245 "memcpfhb" => "3",
246 "memcpfhw" => "3",
247 "memcpfnb" => "3",
248 "memcpfnw" => "3",
249 "memcphfb" => "3",
250 "memcphfw" => "3",
251 "memcphhb" => "3",
252 "memcphhw" => "3",
253 "memcphnb" => "3",
254 "memcphnw" => "3",
255 "memcpnnb" => "3",
256 "memcpnnw" => "3",
257 "memcpy" => "3",
258 "memmove" => "3",
259 "memset" => "3",
260 "mktime" => "3",
261 "modf" => "3",
262 "offsetof" => "3",
263 "pow" => "3",
264 "printf" => "3",
265 "putc" => "3",
266 "putchar" => "3",
267 "puts" => "3",
268 "qsort" => "3",
269 "rand" => "3",
270 "realloc" => "3",
271 "reg163.h" => "3",
272 "reg165.h" => "3",
273 "reg166.h" => "3",
274 "reg167.h" => "3",
275 "scanf" => "3",
276 "setbuf" => "3",
277 "setjmp" => "3",
278 "setjmp.h" => "3",
279 "setvbuf" => "3",
280 "signal.h" => "3",
281 "sin" => "3",
282 "sinh" => "3",
283 "sprintf" => "3",
284 "sqrt" => "3",
285 "srand" => "3",
286 "sscanf" => "3",
287 "stdarg.h" => "3",
288 "stddef.h" => "3",
289 "stdio.h" => "3",
290 "stdlib.h" => "3",
291 "strcat" => "3",
292 "strchr" => "3",
293 "strcmp" => "3",
294 "strcpy" => "3",
295 "strcspn" => "3",
296 "strftime" => "3",
297 "string.h" => "3",
298 "strlen" => "3",
299 "strncat" => "3",
300 "strncmp" => "3",
301 "strncpy" => "3",
302 "strpbrk" => "3",
303 "strrchr" => "3",
304 "strspn" => "3",
305 "strstr" => "3",
306 "strtod" => "3",
307 "strtok" => "3",
308 "strtol" => "3",
309 "strtoul" => "3",
310 "tan" => "3",
311 "tanh" => "3",
312 "time" => "3",
313 "time.h" => "3",
314 "toascii" => "3",
315 "tolower" => "3",
316 "toupper" => "3",
317 "ungetc" => "3",
318 "va_arg" => "3",
319 "va_end" => "3",
320 "va_start" => "3",
321 "vfprintf" => "3",
322 "vprintf" => "3",
323 "vsprintf" => "3",
324 "ASSERT_INC" => "4",
325 "C166_INC" => "4",
326 "CTYPE_INC" => "4",
327 "EOF" => "4",
328 "ERRNO_INC" => "4",
329 "FLOAT_INC" => "4",
330 "LIMITS_INC" => "4",
331 "LOCALE_INC" => "4",
332 "MATH_INC" => "4",
333 "NDEBUG" => "4",
334 "NULL" => "4",
335 "REG163_INC" => "4",
336 "REG163_NOADINT" => "4",
337 "REG163_NOCPU" => "4",
338 "REG163_NOEXTINT" => "4",
339 "REG163_NOPEC" => "4",
340 "REG163_NOPORT" => "4",
341 "REG163_NORS232" => "4",
342 "REG163_NOTIMER" => "4",
343 "REG165_INC" => "4",
344 "REG165_NOADINT" => "4",
345 "REG165_NOCPU" => "4",
346 "REG165_NOEXTINT" => "4",
347 "REG165_NOPEC" => "4",
348 "REG165_NOPORT" => "4",
349 "REG165_NORS232" => "4",
350 "REG165_NOTIMER" => "4",
351 "REG166_INC" => "4",
352 "REG166_NOADC" => "4",
353 "REG166_NOCAPCOM" => "4",
354 "REG166_NOCPU" => "4",
355 "REG166_NOPEC" => "4",
356 "REG166_NOPORT" => "4",
357 "REG166_NORS232" => "4",
358 "REG166_NOTIMER" => "4",
359 "REG167_INC" => "4",
360 "REG167_NOADC" => "4",
361 "REG167_NOADINT" => "4",
362 "REG167_NOCAPCOM" => "4",
363 "REG167_NOCPU" => "4",
364 "REG167_NOPEC" => "4",
365 "REG167_NOPORT" => "4",
366 "REG167_NOPWM" => "4",
367 "REG167_NORS232" => "4",
368 "REG167_NOTIMER" => "4",
369 "SETJMP_INC" => "4",
370 "SIGNAL_INC" => "4",
371 "STDARG_INC" => "4",
372 "STDDEF_INC" => "4",
373 "STDIO_INC" => "4",
374 "STDLIB_INC" => "4",
375 "STRING_INC" => "4",
376 "TIME_INC" => "4",
377 "!" => "5",
378 "$" => "5",
379 "&" => "5",
380 "(" => "5",
381 ")" => "5",
382 "*" => "5",
383 "+" => "5",
384 "," => "5",
385 "-" => "5",
386 "." => "5",
387 "//" => "5",
388 "/" => "5",
389 ":" => "5",
390 ";" => "5",
391 "<" => "5",
392 "=" => "5",
393 ">" => "5",
394 "[" => "5",
395 "]" => "5",
396 "{" => "5",
397 "|" => "5",
398 "}" => "5",
399 "~" => "5");
400
401
402
403
404
405
406
407
408$this->linkscripts = array(
409 "1" => "donothing",
410 "2" => "donothing",
411 "3" => "donothing",
412 "4" => "donothing",
413 "5" => "donothing");
414}