10 {
12
13
14
15
16
17
18 $this->nocase = "1";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22
23
24 $this->colours = array("blue", "purple", "gray", "brown", "blue");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29
30
31 $this->indent = array();
32 $this->unindent = array();
33
34
35
36 $this->stringchars = array();
37 $this->delimiters = array("!", "@", "$", "^", "&", "*", "(", ")", "{", "}", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?", "~");
38 $this->escchar = "";
39
40
41
42 $this->linecommenton = array("%");
43 $this->blockcommenton = array("/*");
44 $this->blockcommentoff = array("*/");
45
46
47
48 $this->keywords = array(
49 "assignin" => "1",
50 "break" => "1",
51 "case" => "1",
52 "catch" => "1",
53 "cell" => "1",
54 "char" => "1",
55 "class" => "1",
56 "dbclear" => "1",
57 "dbcont" => "1",
58 "dbdown" => "1",
59 "dbquit" => "1",
60 "dbstack" => "1",
61 "dbstatus" => "1",
62 "dbstep" => "1",
63 "dbstop" => "1",
64 "dbtype" => "1",
65 "dbup" => "1",
66 "debug" => "1",
67 "double" => "1",
68 "else" => "1",
69 "elseif" => "1",
70 "end" => "1",
71 "error" => "1",
72 "eval" => "1",
73 "evalin" => "1",
74 "feval" => "1",
75 "fieldnames" => "1",
76 "for" => "1",
77 "function" => "1",
78 "getfield" => "1",
79 "global" => "1",
80 "if" => "1",
81 "input" => "1",
82 "isa" => "1",
83 "iscell" => "1",
84 "ischar" => "1",
85 "isempty" => "1",
86 "isequal" => "1",
87 "isfield" => "1",
88 "isnumeric" => "1",
89 "isstruct" => "1",
90 "keyboard" => "1",
91 "lasterr" => "1",
92 "logical" => "1",
93 "length" => "1",
94 "long" => "1",
95 "menu" => "1",
96 "mexdebug" => "1",
97 "nargchk" => "1",
98 "nargin" => "1",
99 "nargout" => "1",
100 "ones" => "1",
101 "otherwise" => "1",
102 "pause" => "1",
103 "persistent" => "1",
104 "return" => "1",
105 "rmfield" => "1",
106 "script" => "1",
107 "setfield" => "1",
108 "sparse" => "1",
109 "speye" => "1",
110 "struct" => "1",
111 "switch" => "1",
112 "try" => "1",
113 "varargin" => "1",
114 "varargout" => "1",
115 "while" => "1",
116 "acsl" => "2",
117 "binpatch" => "2",
118 "cd" => "2",
119 "cedit" => "2",
120 "clc" => "2",
121 "clear" => "2",
122 "computer" => "2",
123 "delete" => "2",
124 "diary" => "2",
125 "dir" => "2",
126 "disp" => "2",
127 "doc" => "2",
128 "dos" => "2",
129 "echo" => "2",
130 "fileparts" => "2",
131 "format" => "2",
132 "fullfile" => "2",
133 "getenv" => "2",
134 "help" => "2",
135 "home" => "2",
136 "hostid" => "2",
137 "info" => "2",
138 "inquire" => "2",
139 "load" => "2",
140 "lookfor" => "2",
141 "ls" => "2",
142 "matlabro" => "2",
143 "memory" => "2",
144 "mlock" => "2",
145 "more" => "2",
146 "munlock" => "2",
147 "mislocked" => "2",
148 "pack" => "2",
149 "path" => "2",
150 "pwd" => "2",
151 "quit" => "2",
152 "readme" => "2",
153 "save" => "2",
154 "size" => "2",
155 "subscrib" => "2",
156 "type" => "2",
157 "unix" => "2",
158 "ver" => "2",
159 "version" => "2",
160 "vms" => "2",
161 "what" => "2",
162 "whatsnew" => "2",
163 "which" => "2",
164 "who" => "2",
165 "whos" => "2",
166 "why" => "2",
167 "abs" => "3",
168 "acos" => "3",
169 "acosh" => "3",
170 "acot" => "3",
171 "acoth" => "3",
172 "acsc" => "3",
173 "acsch" => "3",
174 "angle" => "3",
175 "asec" => "3",
176 "asech" => "3",
177 "asin" => "3",
178 "asinh" => "3",
179 "atan" => "3",
180 "atan2" => "3",
181 "atanh" => "3",
182 "ceil" => "3",
183 "conj" => "3",
184 "cos" => "3",
185 "cosh" => "3",
186 "cot" => "3",
187 "coth" => "3",
188 "csc" => "3",
189 "csch" => "3",
190 "exp" => "3",
191 "fix" => "3",
192 "floor" => "3",
193 "imag" => "3",
194 "log" => "3",
195 "log10" => "3",
196 "real" => "3",
197 "rem" => "3",
198 "round" => "3",
199 "sec" => "3",
200 "sech" => "3",
201 "sign" => "3",
202 "sin" => "3",
203 "sinh" => "3",
204 "sqrt" => "3",
205 "tan" => "3",
206 "tanh" => "3",
207 "+" => "3",
208 "-" => "3",
209 "*" => "3",
210 "/" => "3",
211 "auread" => "4",
212 "auwright" => "4",
213 "axes" => "4",
214 "axis" => "4",
215 "blt" => "4",
216 "capture" => "4",
217 "cinvert" => "4",
218 "cla" => "4",
219 "clf" => "4",
220 "clg" => "4",
221 "close" => "4",
222 "colstyle" => "4",
223 "dc2sc" => "4",
224 "dialog" => "4",
225 "drawnow" => "4",
226 "errordlg" => "4",
227 "figflag" => "4",
228 "figure" => "4",
229 "findobj" => "4",
230 "gca" => "4",
231 "gcf" => "4",
232 "gco" => "4",
233 "get" => "4",
234 "getframe" => "4",
235 "ginput" => "4",
236 "graymon" => "4",
237 "hardcopy" => "4",
238 "helpdlg" => "4",
239 "hold" => "4",
240 "image" => "4",
241 "imagesc" => "4",
242 "imfinfo" => "4",
243 "imread" => "4",
244 "imwright" => "4",
245 "ishold" => "4",
246 "layout" => "4",
247 "meta" => "4",
248 "movie" => "4",
249 "moviein" => "4",
250 "newplot" => "4",
251 "orient" => "4",
252 "patch" => "4",
253 "print" => "4",
254 "questdlg" => "4",
255 "rbbox" => "4",
256 "refresh" => "4",
257 "reset" => "4",
258 "rotate" => "4",
259 "sc2dc" => "4",
260 "set" => "4",
261 "shg" => "4",
262 "sound" => "4",
263 "soundsc" => "4",
264 "subplot" => "4",
265 "swapprev" => "4",
266 "terminal" => "4",
267 "uicontrol" => "4",
268 "uigetfile" => "4",
269 "uiguide" => "4",
270 "uimenu" => "4",
271 "uiputfile" => "4",
272 "uisetcolor" => "4",
273 "uisetfont" => "4",
274 "waitforbuttonpress" => "4",
275 "warndlg" => "4",
276 "wavread" => "4",
277 "wavwright" => "4",
278 "whitebg" => "4",
279 "zoom" => "4",
280 "all" => "5",
281 "any" => "5",
282 "arith" => "5",
283 "balance" => "5",
284 "bar" => "5",
285 "blanks" => "5",
286 "bone" => "5",
287 "brighten" => "5",
288 "caxis" => "5",
289 "cdf2rdf" => "5",
290 "chol" => "5",
291 "clabel" => "5",
292 "cmdmatch" => "5",
293 "colon" => "5",
294 "colorbar" => "5",
295 "colormap" => "5",
296 "comet" => "5",
297 "comet3" => "5",
298 "compass" => "5",
299 "cond" => "5",
300 "contour" => "5",
301 "contour3" => "5",
302 "contourc" => "5",
303 "contrast" => "5",
304 "conv" => "5",
305 "conv2" => "5",
306 "cool" => "5",
307 "copper" => "5",
308 "corrcoef" => "5",
309 "cov" => "5",
310 "cplxpair" => "5",
311 "cross" => "5",
312 "csvread" => "5",
313 "csvwrite" => "5",
314 "cumprod" => "5",
315 "cumsum" => "5",
316 "cylinder" => "5",
317 "deblank" => "5",
318 "dec2hex" => "5",
319 "deconv" => "5",
320 "del2" => "5",
321 "delstext" => "5",
322 "det" => "5",
323 "diff" => "5",
324 "diffuse" => "5",
325 "dlmread" => "5",
326 "dlmwrite" => "5",
327 "dot" => "5",
328 "eig" => "5",
329 "errorbar" => "5",
330 "exist" => "5",
331 "expm" => "5",
332 "expm1" => "5",
333 "expm2" => "5",
334 "expm3" => "5",
335 "fclose" => "5",
336 "feather" => "5",
337 "feof" => "5",
338 "ferror" => "5",
339 "fft" => "5",
340 "fft2" => "5",
341 "fftshift" => "5",
342 "fgetl" => "5",
343 "fgets" => "5",
344 "filesep" => "5",
345 "fill" => "5",
346 "fill3" => "5",
347 "filter" => "5",
348 "filter2" => "5",
349 "find" => "5",
350 "findstr" => "5",
351 "finite" => "5",
352 "fixstext" => "5",
353 "flag" => "5",
354 "fmin" => "5",
355 "fmins" => "5",
356 "fopen" => "5",
357 "foptions" => "5",
358 "fplot" => "5",
359 "fprintf" => "5",
360 "fread" => "5",
361 "frewind" => "5",
362 "fscanf" => "5",
363 "fseek" => "5",
364 "ftell" => "5",
365 "funm" => "5",
366 "fwrite" => "5",
367 "fzero" => "5",
368 "getcargs" => "5",
369 "getstext" => "5",
370 "gradient" => "5",
371 "gray" => "5",
372 "grid" => "5",
373 "griddata" => "5",
374 "gtext" => "5",
375 "hess" => "5",
376 "hex2dec" => "5",
377 "hex2num" => "5",
378 "hdf" => "5",
379 "hidden" => "5",
380 "hist" => "5",
381 "hk" => "5",
382 "hot" => "5",
383 "hsv" => "5",
384 "hsv2rgb" => "5",
385 "icubic" => "5",
386 "ifft" => "5",
387 "ifft2" => "5",
388 "int2str" => "5",
389 "interp1" => "5",
390 "interp2" => "5",
391 "interp3" => "5",
392 "interp4" => "5",
393 "interp5" => "5",
394 "interp6" => "5",
395 "interpft" => "5",
396 "inv" => "5",
397 "isglobal" => "5",
398 "isinf" => "5",
399 "isletter" => "5",
400 "isnan" => "5",
401 "isreal" => "5",
402 "isspace" => "5",
403 "isstr" => "5",
404 "jet" => "5",
405 "kron" => "5",
406 "legend" => "5",
407 "line" => "5",
408 "loglog" => "5",
409 "logm" => "5",
410 "lower" => "5",
411 "lscan" => "5",
412 "lscov" => "5",
413 "lu" => "5",
414 "mat2str" => "5",
415 "matlabroot" => "5",
416 "max" => "5",
417 "mean" => "5",
418 "median" => "5",
419 "mesh" => "5",
420 "meshc" => "5",
421 "meshz" => "5",
422 "mexext" => "5",
423 "min" => "5",
424 "mkpp" => "5",
425 "move1sto" => "5",
426 "moveaxis" => "5",
427 "nextpow2" => "5",
428 "nnls" => "5",
429 "norm" => "5",
430 "null" => "5",
431 "num2str" => "5",
432 "ode23" => "5",
433 "ode23p" => "5",
434 "ode45" => "5",
435 "orth" => "5",
436 "paren" => "5",
437 "partialpath" => "5",
438 "pathsep" => "5",
439 "pcolor" => "5",
440 "pink" => "5",
441 "pinv" => "5",
442 "planerot" => "5",
443 "plot" => "5",
444 "plot3" => "5",
445 "polar" => "5",
446 "poly" => "5",
447 "polyder" => "5",
448 "polyeig" => "5",
449 "polyfit" => "5",
450 "polyline" => "5",
451 "polymark" => "5",
452 "polyval" => "5",
453 "polyvalm" => "5",
454 "ppval" => "5",
455 "printsto" => "5",
456 "prism" => "5",
457 "prod" => "5",
458 "punct" => "5",
459 "qr" => "5",
460 "qrdelete" => "5",
461 "qrinsert" => "5",
462 "quad" => "5",
463 "quad8" => "5",
464 "quad8stp" => "5",
465 "quadstp" => "5",
466 "quiver" => "5",
467 "qz" => "5",
468 "rank" => "5",
469 "rcond" => "5",
470 "readstfm" => "5",
471 "relop" => "5",
472 "resi2" => "5",
473 "residue" => "5",
474 "rgb2hsv" => "5",
475 "rgbplot" => "5",
476 "roots" => "5",
477 "rose" => "5",
478 "rref" => "5",
479 "rsf2csf" => "5",
480 "schur" => "5",
481 "semilogx" => "5",
482 "semilogy" => "5",
483 "setstext" => "5",
484 "setstr" => "5",
485 "shading" => "5",
486 "slash" => "5",
487 "slegend" => "5",
488 "slice" => "5",
489 "sort" => "5",
490 "specular" => "5",
491 "sphere" => "5",
492 "spinmap" => "5",
493 "spline" => "5",
494 "spreview" => "5",
495 "sprintf" => "5",
496 "sqrtm" => "5",
497 "sscanf" => "5",
498 "stairs" => "5",
499 "std" => "5",
500 "stem" => "5",
501 "stext" => "5",
502 "stextbox" => "5",
503 "stfixps" => "5",
504 "stitle" => "5",
505 "stodemo" => "5",
506 "str2mat" => "5",
507 "str2num" => "5",
508 "str2rng" => "5",
509 "strcmp" => "5",
510 "strings" => "5",
511 "strrep" => "5",
512 "strtok" => "5",
513 "subspace" => "5",
514 "sum" => "5",
515 "surf" => "5",
516 "surface" => "5",
517 "surfc" => "5",
518 "surfl" => "5",
519 "surfnorm" => "5",
520 "svd" => "5",
521 "sxlabel" => "5",
522 "sylabel" => "5",
523 "szlabel" => "5",
524 "table1" => "5",
525 "table2" => "5",
526 "tempdir" => "5",
527 "tempname" => "5",
528 "text" => "5",
529 "title" => "5",
530 "trace" => "5",
531 "trapz" => "5",
532 "unmkpp" => "5",
533 "unwrap" => "5",
534 "upper" => "5",
535 "view" => "5",
536 "viewmtx" => "5",
537 "waterfall" => "5",
538 "white" => "5",
539 "wk1const" => "5",
540 "wk1read" => "5",
541 "wk1wrec" => "5",
542 "wk1write" => "5",
543 "xlabel" => "5",
544 "xor" => "5",
545 "xyzchk" => "5",
546 "ylabel" => "5",
547 "zlabel" => "5");
548
549
550
551
552
553
554
555
556 $this->linkscripts = array(
557 "1" => "donothing",
558 "2" => "donothing",
559 "3" => "donothing",
560 "4" => "donothing",
561 "5" => "donothing");
562 }